|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjist.swans.app.net.UdpSocket.UdpSocketCallback
public static class UdpSocket.UdpSocketCallback
Callback for incoming UDP packets.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface jist.swans.trans.TransInterface.SocketHandler |
---|
TransInterface.SocketHandler.TcpHandler |
Field Summary | |
---|---|
private Channel |
channel
Blocking channel, shared with UdpSocket. |
Constructor Summary | |
---|---|
UdpSocket.UdpSocketCallback(Channel channel)
Create new socket callback on given UDP socket channel. |
Method Summary | |
---|---|
void |
receive(Message msg,
NetAddress src,
int srcPort)
Receive transport layer packet. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private Channel channel
Constructor Detail |
---|
public UdpSocket.UdpSocketCallback(Channel channel)
channel
- blocking channel used to deliver packets.Method Detail |
---|
public void receive(Message msg, NetAddress src, int srcPort)
receive
in interface TransInterface.SocketHandler
msg
- incoming packetsrc
- packet source addresssrcPort
- packet source port
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |