Socket with TELNET
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Unix and Linux reviews > Free Unix support > Unix Programming > Socket with TELNET




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Socket with TELNET  
Christophe


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-23-04 10: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





[ Post a follow-up to this message ]



    Re: Socket with TELNET  
Vu Pham


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
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 ]



    Re: Socket with TELNET  
Torfmaster


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-23-04 10: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






[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 01:29 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register