public class PacketNodeBean
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
static int |
MCG_CONFRM |
static int |
MCG_DATA |
static int |
MCG_HBEAT |
static int |
MCG_HSHAKE |
static int |
MCG_NOTICE |
static int |
MCG_QUERY |
static int |
MCG_QUIT |
static int |
MCG_UPDATE |
static int |
PKT_ACK |
static int |
PKT_COUNT |
static int |
PKT_ROLE |
static int |
PKT_SID |
static int |
PKT_STATUS |
static int |
PKT_TIME |
static int |
PTP_CONFRM |
static int |
PTP_DATA |
static int |
PTP_HBEAT |
static int |
PTP_HSHAKE |
static int |
PTP_NOTICE |
static int |
PTP_QUERY |
static int |
PTP_QUIT |
static int |
PTP_UPDATE |
Constructor and Description |
---|
PacketNodeBean() |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
protected void |
finalize() |
java.net.InetAddress |
getAddress() |
java.lang.String |
getContent(int type) |
long |
getCount() |
java.lang.String |
getData() |
java.net.InetAddress |
getExtraAddress() |
int |
getExtraPort() |
java.lang.String |
getExtraURI() |
long |
getLatestTime() |
java.lang.String |
getName() |
java.net.DatagramPacket |
getPacket() |
long |
getPacketInfo(int type,
int i) |
int |
getPacketType() |
int |
getPort() |
int |
getRefCount() |
int |
getRole() |
long |
getSid() |
int |
getStatus() |
long |
getTimestamp() |
java.lang.String |
getUri() |
boolean |
isInitialized() |
void |
setExtraAddress(java.net.InetAddress a) |
void |
setExtraPort(int port) |
void |
setExtraURI(java.lang.String u) |
int |
setPacket(java.net.DatagramPacket packet)
It parses the header of packet and updates properties.
|
void |
setPattern(java.lang.String pattern) |
void |
setRefCount(int refCount) |
void |
setRole(int role) |
void |
setStatus(int status) |
void |
storePacket(java.net.DatagramPacket packet,
int type)
It stores the header and body of the packet to packetInfo as the given
type for public access.
|
public static final int MCG_HBEAT
public static final int MCG_QUIT
public static final int MCG_HSHAKE
public static final int MCG_NOTICE
public static final int MCG_UPDATE
public static final int MCG_CONFRM
public static final int MCG_QUERY
public static final int MCG_DATA
public static final int PTP_HBEAT
public static final int PTP_QUIT
public static final int PTP_HSHAKE
public static final int PTP_NOTICE
public static final int PTP_UPDATE
public static final int PTP_CONFRM
public static final int PTP_QUERY
public static final int PTP_DATA
public static final int PKT_TIME
public static final int PKT_SID
public static final int PKT_ROLE
public static final int PKT_STATUS
public static final int PKT_ACK
public static final int PKT_COUNT
public void clear()
public void setPattern(java.lang.String pattern)
public void storePacket(java.net.DatagramPacket packet, int type)
public int setPacket(java.net.DatagramPacket packet)
public java.net.DatagramPacket getPacket()
public java.net.InetAddress getAddress()
public int getPort()
public java.lang.String getContent(int type)
public long getPacketInfo(int type, int i)
public int getPacketType()
public long getSid()
public long getTimestamp()
public long getLatestTime()
public long getCount()
public int getRefCount()
public void setRefCount(int refCount)
public java.lang.String getName()
public java.lang.String getUri()
public int getRole()
public void setRole(int role)
public int getStatus()
public void setStatus(int status)
public java.lang.String getData()
public boolean isInitialized()
public java.lang.String getExtraURI()
public void setExtraURI(java.lang.String u)
public java.net.InetAddress getExtraAddress()
public void setExtraAddress(java.net.InetAddress a)
public int getExtraPort()
public void setExtraPort(int port)
protected void finalize()
finalize
in class java.lang.Object