Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Logging into telnet using a socket

by pg (Canon)
on Oct 27, 2005 at 01:27 UTC ( [id://503205]=note: print w/replies, xml ) Need Help??


in reply to Logging into telnet using a socket

To implement the entire Telnet protocol (or a subset of it), username and password is just the first issue you are facing. So the level of difficulty is higher than you thought. To install Net::Telnet is a much easier way out.

If you really want to go down the path to implement yourself (for whatever purpose, might be a good learning experience), you first need to get familiar with Telnet protocol, maybe read its specification first (RFC 854).

For your direct issue: yes, you cannot specify password and username when you create TCP socket, as TCP socket never defines those concept (actually not even Telnet). Username and password are tranfered by the Telnet protocol (which is build on top of TCP) as data.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://503205]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (4)
As of 2024-04-19 23:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found