Witold Rugowski
2007-Dec-06 14:07 UTC
[Eventmachine-talk] How to get packet source address in UDP server?
Hi! I''m using eventmachine in one project, and wrote UDP server. Everything works fine ;) but I got stuck and need help . My problem is how to check UDP packet source address and port number. How to do it from inside receive_data in my module? Best regards, -- Witold Rugowski http://nhw.pl/wp/ (EN blog) http://FriendsFeedMe.com
Francis Cianfrocca
2007-Dec-07 05:48 UTC
[Eventmachine-talk] How to get packet source address in UDP
On Dec 6, 2007 5:07 PM, Witold Rugowski <rugowski at nhw.pl> wrote:> Hi! > I''m using eventmachine in one project, and wrote UDP server. Everything > works fine ;) but I got stuck and need help . > > My problem is how to check UDP packet source address and port number. > How to do it from inside receive_data in my module? >There is a get_peername method that should do the trick. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/eventmachine-talk/attachments/20071207/e27b7ede/attachment.html