Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Using IO::Socket to login to a server

by mifflin (Curate)
on Feb 01, 2008 at 04:51 UTC ( #665515=note: print w/replies, xml ) Need Help??


in reply to Using IO::Socket to login to a server

It's hard to say without knowing the protocol.
Is it telnet?
If so, how about Net::Telnet
or
IO::Socket::Telnet
?
You can pick these up on Cpan.
  • Comment on Re: Using IO::Socket to login to a server

Replies are listed 'Best First'.
Re^2: Using IO::Socket to login to a server
by deadpickle (Pilgrim) on Feb 04, 2008 at 03:07 UTC
    I believe the protocol used is tcp. Can I send the user name to the server by just printing to the socket or is there another way?

      TCP isn't precise enough.

      Imagine two people communicating.
      They can communicate in English, in French, etc.
      They can communicate verbally, in writing, etc
      They can communicate over a phone, using snail mail, using a video, etc.

      By picking TCP, you picked something from the second line, but you still have haven't picked a language.

      Is it a Telnet server? an SSH server? HTTP? FTP? ...

        THe server is SSH.
        That means that the client have to log in to a SSH server then
        connect to the chat server using IO::Socket::INET
        This doesnt seem very reasonable, if not impossible.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://665515]
help
Chatterbox?
Discipulus yaaawn..
[Corion]: DST does that to everybody...
Corion attempts to find who to address to better target his drive-by patches
[Corion]: This time it's for the Duktape embedded Javascript engine, which would be nice to have IMO, but doesn't compile on Windows currently
[Corion]: I imagine it would be fun to have WWW::Mechanize:: Duktape, but I haven't seen a web browser written in Javascript yet, except the ones distributed with PhantomJs

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (12)
As of 2017-03-27 11:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (319 votes). Check out past polls.