Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Perl network programming

by naikonta (Curate)
on Oct 03, 2007 at 07:41 UTC ( #642321=note: print w/replies, xml ) Need Help??


in reply to Perl network programming

It's hard to tell exactly since you didn't show us your code. But I guess that you pass in undefined value or empty value (the second arg for IP) to the Socket::pack_sockaddr_in function. You may need to say,
my $port = 8080; my $ip = '192.168.1.1'; my $sockaddr = pack_sockaddr_in($port, inet_aton($ip));

Open source softwares? Share and enjoy. Make profit from them if you can. Yet, share and enjoy!

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://642321]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (7)
As of 2018-02-24 12:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    When it is dark outside I am happiest to see ...














    Results (310 votes). Check out past polls.

    Notices?