Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re^4: IO::Socket::INET -- Jettero verses non-blocking in windowsby jettero (Monsignor) |
on Jul 30, 2004 at 15:57 UTC ( [id://378726]=note: print w/replies, xml ) | Need Help?? |
Your method really does work, so I'm closer. I just don't know how to find the sender IP. Thanks a lot BTW. But, what I was actually asking is about how to find the sender IP. Check out the recv() I posted above. UDP doesn't really connect, so the source IP on each packet can be different. recv() returns some packet header info from which I can get the ip addr of the sender. Sysread doesn't do that at all. And the worse part is, the perldoc page for select() tells me that mixing your vec/select call with recv() is stupid and I'll get burnt. So I'm not sure what to do ...
In Section
Seekers of Perl Wisdom
|
|