99 lines
2.3 KiB
HTML
99 lines
2.3 KiB
HTML
<HTML>
|
|
<!-- THIS FILE IS GENERATED FROM ANOTHER SOURCE FILE -->
|
|
<HEAD>
|
|
<TITLE>Packet</TITLE>
|
|
</HEAD>
|
|
<BODY BGCOLOR="ffffff">
|
|
<DL>
|
|
<DT><H1>Packet</H1></DT>
|
|
<DD>
|
|
|
|
Packet captured with <A HREF="Capture.html"><CODE>Capture</CODE></A> object.
|
|
<CODE>Packet</CODE> and its sub-classes are <A HREF="http://www.ruby-lang.org/en/man-1.4/Marshal.html"><CODE>Marshal</CODE></A> compliant.
|
|
</DD>
|
|
<DT><H2>Super Class:</H2></DT>
|
|
<DD><DL><DT><A HREF="http://www.ruby-lang.org/en/man-1.4/Object.html"><CODE>Object</CODE></A></DT></DL></DD>
|
|
<DT><H2>Methods:</H2></DT>
|
|
<DL COMPACT>
|
|
<DT>
|
|
<A NAME="caplen"><CODE>caplen</CODE></A>
|
|
<DD>
|
|
<p>
|
|
|
|
Return captured length.
|
|
</p>
|
|
<DT>
|
|
<A NAME="datalink"><CODE>datalink</CODE></A>
|
|
<DD>
|
|
<p>
|
|
|
|
Return an integer representing data-link type.
|
|
(e.g. <A HREF="Pcap.html#::DLT_EN10MB"><CODE>DLT_EN10MB</CODE></A>)
|
|
</p>
|
|
<DT>
|
|
<A NAME="ip?"><CODE>ip?</CODE></A>
|
|
<DD>
|
|
<p>
|
|
|
|
Return <CODE>true</CODE> if this packet is an instance of
|
|
<A HREF="IPPacket.html"><CODE>IPPacket</CODE></A> or its sub-class.
|
|
</p>
|
|
<DT>
|
|
<A NAME="len"><CODE>len</CODE></A>
|
|
<DD>
|
|
<DT>
|
|
<A NAME="length"><CODE>length</CODE></A>
|
|
<DD>
|
|
<DT>
|
|
<A NAME="size"><CODE>size</CODE></A>
|
|
<DD>
|
|
<p>
|
|
|
|
Return total length of packet.
|
|
</p>
|
|
<DT>
|
|
<A NAME="raw_data"><CODE>raw_data</CODE></A>
|
|
<DD>
|
|
<p>
|
|
|
|
Return raw data of packet as <A HREF="http://www.ruby-lang.org/en/man-1.4/String.html"><CODE>String</CODE></A>.
|
|
</p>
|
|
<DT>
|
|
<A NAME="tcp?"><CODE>tcp?</CODE></A>
|
|
<DD>
|
|
<p>
|
|
|
|
Return <CODE>true</CODE> if this packet is an instance of
|
|
<A HREF="TCPPacket.html"><CODE>TCPPacket</CODE></A> or its sub-class.
|
|
</p>
|
|
<DT>
|
|
<A NAME="time"><CODE>time</CODE></A>
|
|
<DD>
|
|
<p>
|
|
|
|
Return timestamp as <A HREF="http://www.ruby-lang.org/en/man-1.4/Time.html"><CODE>Time</CODE></A>.
|
|
</p>
|
|
<DT>
|
|
<A NAME="time_i"><CODE>time_i</CODE></A>
|
|
<DD>
|
|
<p>
|
|
|
|
Return timestamp as integer.
|
|
</p>
|
|
<DT>
|
|
<A NAME="udp?"><CODE>udp?</CODE></A>
|
|
<DD>
|
|
<p>
|
|
|
|
Return <CODE>true</CODE> if this packet is an instance of
|
|
<A HREF="UDPPacket.html"><CODE>UDPPacket</CODE></A> or its sub-class.
|
|
</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>
|