Sockets

[email protected] (Jeff Boes)
Newsgroups perl.loop
Organization Nexcerpt, Inc.
Message-ID <[email protected]>
Are there any "gotchas" with respect to 'io' events and sockets?

    $watch_in = IO::Socket::INET->new(
				      Proto => 'udp',
				      LocalPort => $cfg->socket_nbr,
				      ReuseAddr => 1,
				     )
      or logcroak "socket: $@";
    $events{watchdog} = Event->io(
				  cb => \&checkin,
				  fd => $watch_in,
				  poll => 'r',
				 );

I don't seem to get any events on this socket.

-- 
Jeff Boes                                             vox 616.226.9550
Database Engineer                                     fax 616.349.9076
Nexcerpt, Inc.                                      [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.