|
HOME | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ireasoning.core.network.UdpSocketData
This class is a data structure containing udp socket and packet data.
Constructor Summary | |
UdpSocketData(DatagramSocket serverSocket,
DatagramPacket datagramPacket)
Constructor |
Method Summary | |
InetAddress |
getAddress()
Returns the ip address contained in just received datagram packet |
DatagramPacket |
getPacket()
Returns the just received datagram packet |
int |
getPort()
Returns the port number contained in just received datagram packet |
DatagramSocket |
getServerSocket()
Returns the UDP server socket |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public UdpSocketData(DatagramSocket serverSocket, DatagramPacket datagramPacket)
serverSocket
- UDP server socketdatagramPacket
- the packet receivedMethod Detail |
public InetAddress getAddress()
public int getPort()
public DatagramPacket getPacket()
public DatagramSocket getServerSocket()
|
HOME | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |