Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Socket Server and DMZ

by tcf22 (Priest)
on Sep 24, 2003 at 13:46 UTC ( [id://293848]=note: print w/replies, xml ) Need Help??


in reply to Socket Server and DMZ

You just need to find out which ports are available for you to listen on. Then simply setup a socket listener on one of those ports.
use strict; use IO::Socket; my $Socket = IO::Socket::INET->new( LocalPort => 8190, Type => SOCK_STREAM, Reuse => 1, Listen => 1 ); my ($client); while($client = $Socket->accept()){ ##Do something with socket handle }
This one for example, listens on 8190.

- Tom

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (8)
As of 2024-04-23 17:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found