Results 1 to 2 of 2

Thread: Telnet

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 1999
    Location
    Pikeville, KY, USA
    Posts
    12

    Post

    I've tried several places but ran into a major stump.

    I've created a basic Winsock connection to port 23 on a Linux box. Even after I strip the escap char's - all I receive is
    #'
    I tried to send the carriage return upon connection - also, I've downloaded several packages that claim to be telnet but even these produced the same effect. Anyone have a package (source code) that is known to work?

    Rob

  2. #2
    Lively Member
    Join Date
    Nov 1999
    Location
    Melbourne, Victoria, Australia
    Posts
    126

    Post

    I made a winsock control and coded it to connect to a unix machine and work a Telnet gateway. A mate connects to my PC via telnet, my machine bounces to another UNIX machine to the actual Telnet server.

    He connects to me, and I connect to Telnet Server and transfer data respectively.
    My winsock acting as a gateway server.

    winsock1.connect "telnet.server.com", 23

    on the winsock1_connect() event put in..
    winsock1.senddata "username" & chr(13)
    winsock1.senddata "password" & chr(13)

    on winsock_dataarrival() put in...
    Winsock1.getdata TempStr, vbString
    text1.text = text1.text & TempStr

    When doing it that way, I dont get any null or bad characters, works like a dream

    The gateway I made does, IRC and Telnet in one session, works just like a real gateway

    The host and client dont know the difference.

    Mail me if you want some source code.



    ------------------
    Regards,

    Paul Rivoli
    -------------------
    [email protected]
    http://users.bigpond.com/privoli

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