Re: Getting UDP packet source

2008-01-29 Thread yangzhang
Relaying trustin's answer from FreeNode: session.getRemoteAddress(), since session is actually different for each unique source socket. yangzhang wrote: > > How do I get the source IP address and UDP port of a UDP packet received > in this fashion? > > public final cl

Getting UDP packet source

2008-01-28 Thread yangzhang
How do I get the source IP address and UDP port of a UDP packet received in this fashion? public final class Receiver extends IoHandlerAdapter { @Override public void messageReceived(IoSession session, Object obj) throws Exception { ... Thanks in advance! --