chrism01 has asked for the wisdom of the Perl Monks concerning the following question:
Hi,
I'm having trouble creating a basic UDP listen socket. Should be easy...
and the response is:
Can't make server listen socket : IO::Socket::INET: Operation not supported
Any ideas?
Cheers
Chris
I'm having trouble creating a basic UDP listen socket. Should be easy...
#!/usr/bin/perl -w use POSIX; use IO::Socket; use IO::Select; use strict; my ( $listen_socket, # socket to listen on $socket_errmsg # error msg if socket not created ); $listen_socket = IO::Socket::INET->new( LocalAddr =>'a.b.c.d', LocalPort => 7172, Proto => 'udp', Listen => 5, Reuse => 1 ) or $socket_errmsg = "Can't make server listen socket : $@\n"; if( !$listen_socket ) { print $socket_errmsg."\n"; }
and the response is:
Can't make server listen socket : IO::Socket::INET: Operation not supported
Any ideas?
Cheers
Chris
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: UDP socket: Operation not supported
by edan (Curate) on Dec 20, 2004 at 07:38 UTC | |
by chrism01 (Friar) on Dec 21, 2004 at 01:58 UTC | |
by edan (Curate) on Dec 21, 2004 at 07:56 UTC |
Back to
Seekers of Perl Wisdom