com.ireasoning.core.network
Class UdpSocketData
java.lang.Object
|
+--com.ireasoning.core.network.UdpSocketData
- All Implemented Interfaces:
- Serializable
- public class UdpSocketData
- extends Object
- implements Serializable
This class is a data structure containing udp socket and packet data.
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UdpSocketData
public UdpSocketData(DatagramSocket serverSocket,
DatagramPacket datagramPacket)
- Constructor
- Parameters:
serverSocket
- UDP server socketdatagramPacket
- the packet received
getAddress
public InetAddress getAddress()
- Returns the ip address contained in just received datagram packet
getPort
public int getPort()
- Returns the port number contained in just received datagram packet
getPacket
public DatagramPacket getPacket()
- Returns the just received datagram packet
getServerSocket
public DatagramSocket getServerSocket()
- Returns the UDP server socket
Copyright © 2002 iReasoning Inc. All Rights Reserved.