BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Telnet connection-garbage characters!

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Internet Winsock
View previous topic :: View next topic  
Author Message
Naser
Guest





PostPosted: Sat Sep 10, 2005 5:58 am    Post subject: Telnet connection-garbage characters! Reply with quote



hi. I'm not sure if here is the correct group to ask this question.
however, I made a connection to a TELNET server using EmulVT component. I
save all receiving infomation into a log file; There are also some garbage
characters in receiving data. how to prevent or remove of receiving such
garbages?

Thanks in advamce!


Back to top
Martin James
Guest





PostPosted: Sat Sep 10, 2005 12:24 pm    Post subject: Re: Telnet connection-garbage characters! Reply with quote




"Naser" <n_fadaei (AT) yahoo (DOT) com> wrote

Quote:
hi. I'm not sure if here is the correct group to ask this question.
however, I made a connection to a TELNET server using EmulVT component. I
save all receiving infomation into a log file; There are also some garbage
characters in receiving data. how to prevent or remove of receiving such
garbages?

I'm not sure what these 'garbage' chars are. If they are headed by #255 or
ESC, they are probably not garbage, but part of the telnet and/or VT
protocol If so, there is, AFAIK, no easy way of removing them except by
implementing these protocols and extracting/logging only the plain text.
This is, in general, a miserable exercise involving state machines.

I am not familiar with EmulVT - it must implement the protocols to work. Is
there not some 'onPlainText' event?

Rgds,
Martin



Back to top
Naser
Guest





PostPosted: Mon Sep 12, 2005 5:54 am    Post subject: Re: Telnet connection-garbage characters! Reply with quote



thanks

"Martin James" <mjames_falcon (AT) dial (DOT) pipex.com> wrote

Quote:

"Naser" <n_fadaei (AT) yahoo (DOT) com> wrote in message
news:432275bb (AT) newsgroups (DOT) borland.com...
hi. I'm not sure if here is the correct group to ask this question.
however, I made a connection to a TELNET server using EmulVT component.
I
save all receiving infomation into a log file; There are also some
garbage
characters in receiving data. how to prevent or remove of receiving such
garbages?

I'm not sure what these 'garbage' chars are. If they are headed by #255
or
ESC, they are probably not garbage, but part of the telnet and/or VT
protocol If so, there is, AFAIK, no easy way of removing them except by
implementing these protocols and extracting/logging only the plain text.
This is, in general, a miserable exercise involving state machines.

I am not familiar with EmulVT - it must implement the protocols to work.
Is
there not some 'onPlainText' event?

Rgds,
Martin





Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Internet Winsock All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.