Telnet Server

This is a discussion on Telnet Server within the Linux Programming forums, part of the Platform Specific Boards category; I currently have a program that has its own client to communicate with it over the network. What would I ...

  1. #1
    Registered User
    Join Date
    Dec 2001
    Posts
    17

    Telnet Server

    I currently have a program that has its own client to communicate with it over the network. What would I have to do to rewrite the server to accept and understand connections from a standard telnet client? I have not been able to find much information on the control codes for telnet.

  2. #2
    Registered User
    Join Date
    Aug 2002
    Posts
    351
    telnet functions at the socket level, and is essentially a raw socket client.

    as long as your server accepts tcp connections, listens on a tcp port and accepts a data stream you can use telnet as your client.

    test it out. write a tcp time server and use telnet as a client.

  3. #3
    Registered User
    Join Date
    Dec 2001
    Posts
    17
    I've made a daytime server and I don't have a problem sending data to the client. My current problem is that the client keeps sending "xterm" string like it's waiting for my program to acknowledge the terminal type
    -----------------------
    R. D. Nichols, Jr.

    -Why do I have to go EVERYWHERE in this handbasket?

  4. #4
    Comment your source code! Lynux-Penguin's Avatar
    Join Date
    Apr 2002
    Posts
    533
    Asking the right question is sometimes more important than knowing the answer.
    Please read the FAQ
    C Reference Card (A MUST!)
    Pointers and Memory
    The Essentials
    CString lib

  5. #5
    Registered User
    Join Date
    Dec 2001
    Posts
    17

    Found what I needed.

    I'd like to thank everyone that helped me on this. To anyone that might be interested in this subject, I've found a website that has compiled ALL the telnet rfc's into an understandable document at http://www.scit.wlv.ac.uk/~jphb/comms/telnet.html . Again, thanks for all the help.

    -rdnjr
    -----------------------
    R. D. Nichols, Jr.

    -Why do I have to go EVERYWHERE in this handbasket?

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. telnet server, how to program a backspace
    By Mastermosley in forum C# Programming
    Replies: 5
    Last Post: 03-22-2009, 02:14 AM
  2. Server Architecture
    By coder8137 in forum Networking/Device Communication
    Replies: 2
    Last Post: 01-29-2008, 10:21 PM
  3. Where's the EPIPE signal?
    By marc.andrysco in forum Networking/Device Communication
    Replies: 0
    Last Post: 12-23-2006, 07:04 PM
  4. telnet server
    By iain in forum Tech Board
    Replies: 1
    Last Post: 11-25-2002, 02:32 PM
  5. socket question
    By Unregistered in forum C Programming
    Replies: 3
    Last Post: 07-19-2002, 01:54 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21