|
||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||
| 概要: 内部クラス | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||
java.lang.Object
|
+--jpcap.Packet
|
+--jpcap.IPPacket
|
+--jpcap.TCPPacket
TCPパケットを表現するクラスです
| フィールドの概要 | |
boolean |
ack
ACKフラグ: ACK番号フィールド有効 |
long |
ack_num
ACK番号 |
int |
dst_port
送信先ポート |
boolean |
fin
FINフラグ: 送信終了要求 |
byte[] |
option
TCPオプション |
boolean |
psh
PSHフラグ: PUSH(強制送信)要求 |
boolean |
rst
RSTフラグ: 強制切断要求 |
long |
sequence
シーケンス番号 |
int |
src_port
送信元ポート |
boolean |
syn
SYNフラグ: シーケンス番号の同期要求 |
boolean |
urg
URGフラグ: 緊急データ(優先送信要求) |
short |
urgent_pointer
緊急ポインタ |
int |
window
ウィンドウ(受信バッファ残りバイト数) |
| クラス 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 |
| クラス jpcap.Packet から継承したフィールド |
caplen, data, datalink, header, len, sec, usec |
| コンストラクタの概要 | |
TCPPacket(int src_port,
int dst_port,
long sequence,
long ack_num,
boolean urg,
boolean ack,
boolean psh,
boolean rst,
boolean syn,
boolean fin,
int window,
int urgent)
TCPパケットのオブジェクトを生成します |
|
| メソッドの概要 | |
java.lang.String |
toString()
このパケットの内容を文字列で表現します 形式: src_port > dst_port seq(sequence) win(window) [ack ack_num] [S][F][P] |
| クラス jpcap.IPPacket から継承したメソッド |
setIPv4Parameter, setIPv6Parameter |
| クラス java.lang.Object から継承したメソッド |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| フィールドの詳細 |
public int src_port
public int dst_port
public long sequence
public long ack_num
public boolean urg
public boolean ack
public boolean psh
public boolean rst
public boolean syn
public boolean fin
public int window
public short urgent_pointer
public byte[] option
| コンストラクタの詳細 |
public TCPPacket(int src_port,
int dst_port,
long sequence,
long ack_num,
boolean urg,
boolean ack,
boolean psh,
boolean rst,
boolean syn,
boolean fin,
int window,
int urgent)
src_port - 送信元ポート番号dst_port - 送信先ポート番号sequence - シーケンス番号ack_num - ACK番号urg - URGフラグ: 緊急データ(優先送信要求)ack - ACKフラグ: ACK番号フィールド有効psh - PSHフラグ: PUSH(強制送信)要求rst - RSTフラグ: 強制切断要求syn - SYNフラグ: シーケンス番号の同期要求fin - FINフラグ: 送信終了要求window - ウィンドウサイズurgent - 緊急ポインタ| メソッドの詳細 |
public java.lang.String toString()
IPPacket 内の toString
|
||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||
| 概要: 内部クラス | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||