com.tivoli.twg.netipc
Class TWGReceivedDatagram

java.lang.Object
  extended bycom.tivoli.twg.netipc.TWGReceivedDatagram

public final class TWGReceivedDatagram
extends java.lang.Object

Protocol-neutral container for a datagram received from the network, containing the data and its origin network address.


Constructor Summary
TWGReceivedDatagram(TWGNetAddress address, byte[] data, int length)
          Constructor for an incoming datagram from a TWGDatagramSocket provider
 
Method Summary
 TWGNetAddress GetAddress()
          Get address
 byte[] GetData()
          Get data buffer.
 int GetLength()
          Get packet data length
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TWGReceivedDatagram

public TWGReceivedDatagram(TWGNetAddress address,
                           byte[] data,
                           int length)
Constructor for an incoming datagram from a TWGDatagramSocket provider

Method Detail

GetAddress

public TWGNetAddress GetAddress()
Get address

Returns:
network address

GetData

public byte[] GetData()
Get data buffer. The length of the data buffer returned may exceed the actual length of the datagram data (the actual data length is returned by the GetLength method).

Returns:
buffer containing data

GetLength

public int GetLength()
Get packet data length

Returns:
packet data length