| java.lang.Object seda.sandStorm.lib.aSocket.ATcpInPacket
ATcpInPacket | public class ATcpInPacket implements QueueElementIF(Code) | | An ATcpInPacket represents a packet which was received from an
asynchronous socket. When a packet is received on a connection,
an ATcpInPacket is pushed to the SinkIF associated with an
ATcpConnection.
author: Matt Welsh See Also: ATcpConnection |
Constructor Summary | |
public | ATcpInPacket(ATcpConnection conn, BufferElement buf) | public | ATcpInPacket(ATcpConnection conn, BufferElement buf, long seqNum) | public | ATcpInPacket(ATcpConnection conn, byte data, int len) | public | ATcpInPacket(ATcpConnection conn, byte data, int len, long seqNum) | public | ATcpInPacket(ATcpConnection conn, byte data, int len, boolean copy) | public | ATcpInPacket(ATcpConnection conn, byte data, int len, boolean copy, long seqNum) |
Method Summary | |
public BufferElement | getBufferElement() Return the BufferElement associated with the packet data. | public byte[] | getBytes() Return the data from an incoming TCP packet. | public ATcpConnection | getConnection() Return the connection from which this packet was received. | public long | getSequenceNumber() Return the sequence number associated with this packet.
Sequence numbers range from 1 to Long.MAX_VALUE, then wrap
around to Long.MIN_VALUE. | public int | size() Return the size of the packet data. | public String | toString() |
ATcpInPacket | public ATcpInPacket(ATcpConnection conn, byte data, int len, boolean copy, long seqNum)(Code) | | |
getBufferElement | public BufferElement getBufferElement()(Code) | | Return the BufferElement associated with the packet data.
|
getBytes | public byte[] getBytes()(Code) | | Return the data from an incoming TCP packet.
|
getConnection | public ATcpConnection getConnection()(Code) | | Return the connection from which this packet was received.
|
getSequenceNumber | public long getSequenceNumber()(Code) | | Return the sequence number associated with this packet.
Sequence numbers range from 1 to Long.MAX_VALUE, then wrap
around to Long.MIN_VALUE. A sequence number of 0 indicates that
no sequence number was associated with this packet when it was
created.
|
size | public int size()(Code) | | Return the size of the packet data.
|
|
|