in reply to Writing an rsh client (Moved from Q&A)
See LocalPort there? That's your baby. LocalPort => 998, for example.In addition to the key-value pairs accepted by the IO::Socket manpage, IO::Socket::INET provides. PeerAddr Remote host address <hostname>[:<p +ort>] PeerHost Synonym for PeerAddr PeerPort Remote port or service <service>[(<no +>)] | <no> LocalAddr Local host bind address hostname[:port +] LocalHost Synonym for LocalAddr LocalPort Local host bind port <service>[(<no +>)] | <no> Proto Protocol name (or number) "tcp" | "udp" +| ... Type Socket type SOCK_STREAM | +SOCK_DGRAM | ... Listen Queue size for listen Reuse Set SO_REUSEADDR before binding Timeout Timeout value for various operations MultiHomed Try all adresses for multi-homed hosts
So, there's your answer in black and white.
However, be sure to see my other post on this on why this is a false sense of security.
-- Randal L. Schwartz, Perl hacker
|
|---|