01-23-04 10: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
[ Post a follow-up to this message ]
|