-
Notifications
You must be signed in to change notification settings - Fork 32
/
Copy pathTCPPacket.html
147 lines (132 loc) · 2.62 KB
/
TCPPacket.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
<HTML>
<!-- THIS FILE IS GENERATED FROM ANOTHER SOURCE FILE -->
<HEAD>
<TITLE>TCPPacket</TITLE>
</HEAD>
<BODY BGCOLOR="ffffff">
<DL>
<DT><H1>TCPPacket</H1></DT>
<DD>
A packet carrying TCP header.
</DD>
<DT><H2>Super Class:</H2></DT>
<DD><DL><DT><A HREF="IPPacket.html"><CODE>IPPacket</CODE></A></DT></DL></DD>
<DT><H2>Methods:</H2></DT>
<DL COMPACT>
<DT>
<A NAME="tcp_ack"><CODE>tcp_ack</CODE></A>
<DD>
<p>
Return acknowledgement number.
</p>
<DT>
<A NAME="tcp_data"><CODE>tcp_data</CODE></A>
<DD>
<p>
Return data part as <A HREF="http://www.ruby-lang.org/en/man-1.4/String.html"><CODE>String</CODE></A>.
</p>
<DT>
<A NAME="tcp_data_len"><CODE>tcp_data_len</CODE></A>
<DD>
<p>
Return length of data part.
</p>
<DT>
<A NAME="tcp_dport"><CODE>tcp_dport</CODE></A>
<DD>
<DT>
<A NAME="dport"><CODE>dport</CODE></A>
<DD>
<p>
Return destination port number.
</p>
<DT>
<A NAME="tcp_flags"><CODE>tcp_flags</CODE></A>
<DD>
<p>
Return the value of 6-bits flag field.
</p>
<DT>
<A NAME="tcp_flags_s"><CODE>tcp_flags_s</CODE></A>
<DD>
<p>
Return the value of 6-bits flag field as string like
<CODE>".A...F"</CODE>.
</p>
<DT>
<A NAME="tcp_fin?"><CODE>tcp_fin?</CODE></A>
<DD>
<DT>
<A NAME="tcp_syn?"><CODE>tcp_syn?</CODE></A>
<DD>
<DT>
<A NAME="tcp_rst?"><CODE>tcp_rst?</CODE></A>
<DD>
<DT>
<A NAME="tcp_psh?"><CODE>tcp_psh?</CODE></A>
<DD>
<DT>
<A NAME="tcp_ack?"><CODE>tcp_ack?</CODE></A>
<DD>
<DT>
<A NAME="tcp_urg?"><CODE>tcp_urg?</CODE></A>
<DD>
<p>
Return <CODE>true</CODE> if flag is set.
</p>
<DT>
<A NAME="tcp_off"><CODE>tcp_off</CODE></A>
<DD>
<DT>
<A NAME="tcp_hlen"><CODE>tcp_hlen</CODE></A>
<DD>
<p>
Return TCP data offset (header length). (Unit: 4-octets)
</p>
<DT>
<A NAME="tcp_seq"><CODE>tcp_seq</CODE></A>
<DD>
<p>
Return sequence number.
</p>
<DT>
<A NAME="tcp_sum"><CODE>tcp_sum</CODE></A>
<DD>
<p>
Return the value of checksum field.
</p>
<DT>
<A NAME="tcp_sport"><CODE>tcp_sport</CODE></A>
<DD>
<DT>
<A NAME="sport"><CODE>sport</CODE></A>
<DD>
<p>
Return source port number.
</p>
<DT>
<A NAME="tcp_urp"><CODE>tcp_urp</CODE></A>
<DD>
<p>
Return urgent pointer.
</p>
<DT>
<A NAME="tcp_win"><CODE>tcp_win</CODE></A>
<DD>
<p>
Return window size.
</p>
<DT>
<A NAME="to_s"><CODE>to_s</CODE></A>
<DD>
<p>
Return string representation.
</p>
</DL>
</DL>
<HR>
<P ALIGN="RIGHT">
<A HREF="mailto:[email protected]">[email protected]</A><BR>
</P>
</BODY>
</HTML>