Results 1 to 5 of 5

Thread: Opening a Telnet session

  1. #1

    Thread Starter
    New Member
    Join Date
    Jan 2003
    Posts
    2

    Opening a Telnet session

    Can anyone tell me how to open a Telnet session in C++? I am new to this and am trying to write a small program for work where I open a Telnet session and send some TL1 commands.

    Thanks a lot, Jim

  2. #2
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    Telnet is very simple AFAIK, it should be possible to simply connect to a pc on port 20 and send raw data.

    Means you should use sockets.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  3. #3
    Guru Yonatan's Avatar
    Join Date
    Apr 1999
    Location
    Israel
    Posts
    892
    Originally posted by CornedBee
    Telnet is very simple AFAIK, it should be possible to simply connect to a pc on port 20 and send raw data.

    Means you should use sockets.
    port 23*

  4. #4
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    Sorry.
    20 would be FTP command, right?
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  5. #5
    Guru Yonatan's Avatar
    Join Date
    Apr 1999
    Location
    Israel
    Posts
    892
    Code:
    ftp-data           20/tcp                           #FTP, data
    ftp                21/tcp                           #FTP. control
    telnet             23/tcp

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width