|
Home > Archive > Unix Programming > January 2004 > Socket with TELNET
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Socket with TELNET
|
|
| Christophe 2004-01-23, 5:21 pm |
| Hello...
I'm actualy programing socket in C under HP Unix. As I must use TELNET
protocol, I'd like to know if someone could tell me what to do.
I mean, I know that I must create a socket, then, use GetHostByName or
inet_addr, then a conect...
But is there some particular thing I must'nt forget ?
I saw, in the specifications I follow, that I have to force BINARY, and
NODELAY, and at the end of the initialisation I must reset a transparancy
flag...
This is not familiar for me... Anyone could help me ?
Does anyone have some exemple of TelNet socket in C that would help me ?
Thx a lot
Chris
| |
| Vu Pham 2004-01-23, 5:21 pm |
|
"Christophe" <chocman@libertysurf.fr> wrote in message
news:MPG.1a5a1f8441649b88989687@news.oleane.fr...quote:
> Hello...
>
> I'm actualy programing socket in C under HP Unix. As I must use TELNET
> protocol, I'd like to know if someone could tell me what to do.
> I mean, I know that I must create a socket, then, use GetHostByName or
> inet_addr, then a conect...
> But is there some particular thing I must'nt forget ?
>
> I saw, in the specifications I follow, that I have to force BINARY, and
> NODELAY, and at the end of the initialisation I must reset a transparancy
> flag...
>
> This is not familiar for me... Anyone could help me ?
> Does anyone have some exemple of TelNet socket in C that would help me ?
The following URL is about socket programming
http://www.ecst.csuchico.edu/~beej/guide/net/
For an example of telnet, you can check the book "Internetworking with
Tcp/ip Volume 3, Client-server programming and applications, Linux/Posix
sockets version" of Douglas E. Comer and David L. Stevens. It has an example
of Telnet client.
Depending on the terminal capabilities of the server you will connect to,
you may need to check the document for that corresponding terminal
capability ( VT , WYSE , ... )
HTH,
Vu
| |
| Torfmaster 2004-01-23, 5:21 pm |
| In article <MPG.1a5a1f8441649b88989687@news.oleane.fr>,
Christophe <chocman@libertysurf.fr> writes:
Hello!
I worked with telnet to test my sockets until I got a system where
netcat was preinstalled ^^ You have to be careful with carriage return
( 10+13 ), if you aren't careful, the program will end up in a big mess.
It took me several hours until I realised, that this is the source of
my problems. ( well, MS has never been keen on standards... ).
cheers
Phil
|
|
|
|
|