|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object
|
+--jpcap.Packet
|
+--jpcap.IPPacket
|
+--jpcap.UDPPacket
This class represents UDP packet.
| Field Summary | |
int |
dst_port
Destination port number |
int |
length
Packet length |
int |
src_port
Source port number |
| Fields inherited from class jpcap.IPPacket |
d_flag,
dont_frag,
dst_ip,
flow_label,
hop_limit,
ident,
length,
more_frag,
offset,
options,
priority,
protocol,
r_flag,
rsv_frag,
src_ip,
t_flag,
version |
| Fields inherited from class jpcap.Packet |
caplen,
data,
datalink,
sec,
usec |
| Constructor Summary | |
UDPPacket(int src_port,
int dst_port)
Create the object of a UDP packet |
|
| Method Summary | |
java.lang.String |
toString()
Convert this object to String. src_port > dst_port |
| Methods inherited from class jpcap.IPPacket |
setIPv4Parameter,
setIPv6Parameter |
| Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
| Field Detail |
public int src_port
public int dst_port
public int length
| Constructor Detail |
public UDPPacket(int src_port,
int dst_port)
src_port - Source port numberdst_port - Destination port number| Method Detail |
public java.lang.String toString()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||