Sending commands to Telnet


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: Sending commands to Telnet

Hybrid View

  1. #1
    Join Date
    Apr 2009
    Location
    Singapore
    Posts
    13

    Sending commands to Telnet

    Dear all,

    I am using C Programming language. I am currently using VT100 emulation on my HyperTerminal as a Telnet program.

    Let's say I want to send certain commands to the HyperTerminal or Telnet for example, change you emulation from VT100 to TTY, etc...

    Anyone has experience on this? Manipulating the Telnet environment with C Programming?

    Dav

  2. #2
    Join Date
    Jan 2005
    Location
    UK
    Posts
    604
    came across this just recently. It's a funny, easy to read introduction.
    Hats off! Didn't verify that everything is 100% uptodate, but defo gives you enough insight to start you off for further research

    http://beej.us/guide/bgnet/output/ht...age/bgnet.html
    DKyb
    -------------------------------
    Life is a short warm moment -
    Death is the long cold rest.
    Pink Floyd
    -------------------------------

  3. #3
    Join Date
    Dec 2007
    Posts
    401
    from the server first send an IAC DO TERMINAL-TYPE
    the client will respond with IAC WILL TERMINAL-TYPE if it supports terminal type negotiation.

    negotiate with the client using this sequence as many times as needed.
    server: IAC SB TERMINAL-TYPE SEND IAC SE
    client: IAC SB TERMINAL-TYPE IS DEC-VT220 IAC SE (responds with one of the terminal type it supports.)
    for details see RFC 1091 http://www.faqs.org/rfcs/rfc1091.html

    if you are unfamiliar with the telnet protocol, you may want to first read these:
    http://www.tcpipguide.com/free/t_Tel...Commands-2.htm
    http://www.tcpipguide.com/free/t_Tel...Commands-3.htm
    http://www.tcpipguide.com/free/t_Tel...otiation-2.htm

Similar Threads

  1. Replies: 0
    Last Post: 01-15-2009, 11:06 AM
  2. Replies: 1
    Last Post: 06-15-2005, 01:20 PM
  3. sending commands to commadn prompt?
    By gx_aaron in forum VB Classic
    Replies: 2
    Last Post: 02-17-2005, 07:56 PM
  4. Replies: 0
    Last Post: 07-24-2002, 06:58 PM
  5. Java Sockets and Telnet
    By Alan Shiers in forum Java
    Replies: 1
    Last Post: 07-12-2002, 07:22 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center