148 lines
2.6 KiB
HTML
148 lines
2.6 KiB
HTML
<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:fukusima@goto.info.waseda.ac.jp">fukusima@goto.info.waseda.ac.jp</A><BR>
|
|
</P>
|
|
</BODY>
|
|
</HTML>
|