oemware.core.net
Class DatagramMessage

java.lang.Object
  extended by oemware.core.net.DatagramMessage

public final class DatagramMessage
extends java.lang.Object

The datagram message object.


Field Summary
 java.nio.ByteBuffer buffer
          Choose your poison.
 int bufferSize
           
 byte[] data
           
 int offset
           
 
Method Summary
 int getSourceAddress()
          Returns the source address in int format.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

bufferSize

public final int bufferSize

offset

public final int offset

buffer

public final java.nio.ByteBuffer buffer
Choose your poison. Byte buffers can be really sloooow. Up to eight times slower.


data

public final byte[] data
Method Detail

getSourceAddress

public final int getSourceAddress()
Returns the source address in int format.

Returns:
The source address.


Copyright © 2009 Deft Labs - Released under LGPL, Version 3.0