Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re^5: IO::Socket::INET -- Jettero verses non-blocking in windowsby tachyon (Chancellor) |
on Jul 30, 2004 at 16:14 UTC ( [id://378732]=note: print w/replies, xml ) | Need Help?? |
To get that info you need raw socket access. You can do it I suppose but you are getting into a fairly deep area. See this for some idea of how easy it isn't. You will note that even WinSock support for it is not a given. It depends on which flavour you are running. Probably the easiest workaround is to accept that the socket will block on win32. To get a non-blocking effect run two processes. The blocking UDP message acceptor process block waiting for data, as you have now. When it has something to say it says it. The other process listens effectively via a non blocking read. Ugly but it would work and is probably the easiest implementation. cheers tachyon
In Section
Seekers of Perl Wisdom
|
|