SSF.OS.UDP
Class UDP_Header

java.lang.Object
  |
  +--SSF.OS.ProtocolMessage
        |
        +--SSF.OS.UDP.UDP_Header

public class UDP_Header
extends ProtocolMessage

Simplified UDP Header.


Field Summary
 int DEST_port
          destination port number
 int length
          UDP payload length
 int SOURCE_port
          source port number
 
Constructor Summary
UDP_Header(int src_port, int dest_port, int data_length)
          Constructors
 
Method Summary
 int bytecount()
          total number of bytes in this UDP message
 int header_bytecount()
          number of bytes in the header of this UDP message
 java.lang.String toString()
          print out the UDP message
 
Methods inherited from class SSF.OS.ProtocolMessage
carryPayload, copy, dropHeader, dropPayload, frombytes, fromVersion, payload, previous, size, tobytes, version
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DEST_port

public int DEST_port
destination port number


SOURCE_port

public int SOURCE_port
source port number


length

public int length
UDP payload length

Constructor Detail

UDP_Header

public UDP_Header(int src_port,
                  int dest_port,
                  int data_length)
Constructors

Method Detail

toString

public java.lang.String toString()
print out the UDP message

Overrides:
toString in class java.lang.Object

header_bytecount

public int header_bytecount()
number of bytes in the header of this UDP message

Overrides:
header_bytecount in class ProtocolMessage

bytecount

public int bytecount()
total number of bytes in this UDP message

Overrides:
bytecount in class ProtocolMessage