Thread: Telnet login detection?

  1. #1
    Registered User
    Join Date
    Mar 2006

    Telnet login detection?

    I'm writing a simple telnetclient but need some ideas in how to detect the login prompt? When connecting to the server it sends out some informations which ends with a new line so they I can handle but after the server sends the login prompt it stays and waits for input. So how do I detect that the server has sent something and is waiting for input?

  2. #2
    Sr. Software Engineer filker0's Avatar
    Join Date
    Sep 2005
    West Virginia
    I'd suggest looking at the Telnet RFC (Request for Comments).

    Basically, as I understand it, a telnet connection (once established) is always waiting for input, whether it knows it or not, unless it's done a flow-control request to stop incomming data. If running in half duplex, it might be different.

    I don't remember, and I can't get at the RFCs or Google while I'm typing this reply.
    Insert obnoxious but pithy remark here

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Help with telnet and tcp
    By hoAx in forum Windows Programming
    Replies: 11
    Last Post: 03-11-2008, 02:03 PM
  2. C Function Telnet Email
    By karcheee in forum C Programming
    Replies: 3
    Last Post: 07-25-2005, 11:39 AM
  3. C Execl Telnet
    By karcheee in forum C Programming
    Replies: 1
    Last Post: 04-26-2005, 02:31 PM
  4. telnet!!
    By bigB8210 in forum A Brief History of
    Replies: 1
    Last Post: 08-13-2003, 05:09 PM
  5. login script - URGENT!!!
    By linzeeuk in forum C Programming
    Replies: 5
    Last Post: 05-05-2003, 02:26 PM