HOME

com.ireasoning.core.network
Class UdpSocketData

java.lang.Object
  extended bycom.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

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

UdpSocketData

public UdpSocketData(DatagramSocket serverSocket,
                     DatagramPacket datagramPacket)
Constructor

Parameters:
serverSocket - UDP server socket
datagramPacket - the packet received
Method Detail

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


HOME

Copyright © 2002 iReasoning Inc. All Rights Reserved.