|
SourceForge Jpcap | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public static interface IP.TCP
TCP (Transmission Control Protocol) API interface. This is read-only. You can't use Jpcap to send TCP packets, because
Method Summary | |
---|---|
long |
getAcknowledgmentNumber()
Fetch the byte acknowledgment number, i.e. |
int |
getDestinationPort()
Fetches the destination port number. |
int |
getPayloadDataLength()
Fetches the length of the payload data. |
long |
getSequenceNumber()
Fetch the byte sequence number. |
int |
getSourcePort()
Fetch the source port number. |
int |
getTCPChecksum()
Fetch the TCP checksum. |
byte[] |
getTCPData()
Fetch the TCP data as a byte array. |
byte[] |
getTCPHeader()
Fetch the TCP header as a byte array. |
int |
getTCPHeaderLength()
Fetch the TCP header length in bytes. |
int |
getUrgentPointer()
Fetch the urgent pointer. |
int |
getWindowSize()
Fetch the window size. |
boolean |
isAck()
Return the ACK flag, indicating that the ack number is valid. |
boolean |
isFin()
Return the FIN flag, indicating that the sender has finished sending. |
boolean |
isPsh()
Return the PSH flag, indicating that the receiver should pass the data to the application as soon as possible. |
boolean |
isRst()
Return the RST flag, indicating that the connection has been reset by the sender. |
boolean |
isSyn()
Return the SYN flag, set to synchronize the sequence numbers between the sender and receiver as part of the connect handshake. |
boolean |
isUrg()
Return the URG flag, indicating that the urgent pointer is valid. |
boolean |
isValidTCPChecksum()
Return true if the TCP checksum is valid |
Method Detail |
---|
int getSourcePort()
int getDestinationPort()
long getSequenceNumber()
long getAcknowledgmentNumber()
int getTCPHeaderLength()
int getPayloadDataLength()
int getWindowSize()
int getTCPChecksum()
int getUrgentPointer()
boolean isUrg()
boolean isAck()
boolean isPsh()
boolean isRst()
boolean isSyn()
boolean isFin()
byte[] getTCPHeader()
byte[] getTCPData()
boolean isValidTCPChecksum()
|
Copyright © Patrick Charles & Jonas Lehmann, 2001; Esmond Pitt, 2008. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |