 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Naser Guest
|
Posted: Sat Sep 10, 2005 5:58 am Post subject: Telnet connection-garbage characters! |
|
|
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
|
Posted: Sat Sep 10, 2005 12:24 pm Post subject: Re: Telnet connection-garbage characters! |
|
|
"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
|
Posted: Mon Sep 12, 2005 5:54 am Post subject: Re: Telnet connection-garbage characters! |
|
|
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 |
|
 |
|
|
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
|
|