mx.udlap.kjProtocol.packets
Class BasicPacket

java.lang.Object
  extended bymx.udlap.kjProtocol.packets.BasicPacket
Direct Known Subclasses:
AckMessage, AdminKMessage, HeartBeatKMessage, SMSPacketMessage, WDPDatagramPacketMessage

public class BasicPacket
extends java.lang.Object

The basic type of packet, it contains lenght and type for a kannel protocol message. This class is used by extending it.

Author:
Oscar Medina Duarte

Field Summary
static byte ACK_PKT
          Acknowledgement type of packet constant
static byte ADMIN_PKT
          Admin type of packet constant
static byte HEARTBEAT_PKT
          Heart beat type of packet constant
 KInteger length
          Length of the packet
static KInteger NODATA
          4 byte integer, all bits set to 1, it is used to indicate that a field is not in use.
static byte SMS_PKT
          Short Message Service type of packet constant
 KInteger type
          Type of the packet
static byte WDP_PKT
          Wireless Datagram Packet type of packet constant
 
Constructor Summary
BasicPacket()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NODATA

public static final KInteger NODATA
4 byte integer, all bits set to 1, it is used to indicate that a field is not in use.


HEARTBEAT_PKT

public static final byte HEARTBEAT_PKT
Heart beat type of packet constant

See Also:
Constant Field Values

ADMIN_PKT

public static final byte ADMIN_PKT
Admin type of packet constant

See Also:
Constant Field Values

SMS_PKT

public static final byte SMS_PKT
Short Message Service type of packet constant

See Also:
Constant Field Values

ACK_PKT

public static final byte ACK_PKT
Acknowledgement type of packet constant

See Also:
Constant Field Values

WDP_PKT

public static final byte WDP_PKT
Wireless Datagram Packet type of packet constant

See Also:
Constant Field Values

length

public KInteger length
Length of the packet


type

public KInteger type
Type of the packet

Constructor Detail

BasicPacket

public BasicPacket()