|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjpcap.packet.Packet
jpcap.packet.IPPacket
jpcap.packet.UDPPacket
public class 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.packet.IPPacket |
---|
d_flag, dont_frag, dst_ip, flow_label, hop_limit, ident, IPPROTO_HOPOPT, IPPROTO_ICMP, IPPROTO_IGMP, IPPROTO_IP, IPPROTO_IPv6, IPPROTO_IPv6_Frag, IPPROTO_IPv6_ICMP, IPPROTO_IPv6_NoNxt, IPPROTO_IPv6_Opts, IPPROTO_IPv6_Route, IPPROTO_TCP, IPPROTO_UDP, more_frag, offset, option, options, priority, protocol, r_flag, rsv_frag, rsv_tos, src_ip, t_flag, version |
Fields inherited from class jpcap.packet.Packet |
---|
caplen, data, datalink, EOF, header, len, sec, usec |
Constructor Summary | |
---|---|
UDPPacket(int src_port,
int dst_port)
Creates a UDP packet. |
Method Summary | |
---|---|
java.lang.String |
toString()
Returns a string representation of this packet. Format: src_port > dst_port |
Methods inherited from class jpcap.packet.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 numberMethod Detail |
---|
public java.lang.String toString()
toString
in class IPPacket
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |