|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectseda.sandStorm.lib.aSocket.ATcpInPacket
public class ATcpInPacket
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.
ATcpConnection| Field Summary | |
|---|---|
private BufferElement |
buf
|
private ATcpConnection |
conn
|
(package private) long |
seqNum
|
| Constructor Summary | |
|---|---|
ATcpInPacket(ATcpConnection conn,
BufferElement buf)
|
|
ATcpInPacket(ATcpConnection conn,
BufferElement buf,
long seqNum)
|
|
ATcpInPacket(ATcpConnection conn,
byte[] data,
int len)
|
|
ATcpInPacket(ATcpConnection conn,
byte[] data,
int len,
boolean copy)
|
|
ATcpInPacket(ATcpConnection conn,
byte[] data,
int len,
boolean copy,
long seqNum)
|
|
ATcpInPacket(ATcpConnection conn,
byte[] data,
int len,
long seqNum)
|
|
| Method Summary | |
|---|---|
BufferElement |
getBufferElement()
Return the BufferElement associated with the packet data. |
byte[] |
getBytes()
Return the data from an incoming TCP packet. |
ATcpConnection |
getConnection()
Return the connection from which this packet was received. |
long |
getSequenceNumber()
Return the sequence number associated with this packet. |
int |
size()
Return the size of the packet data. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private ATcpConnection conn
private BufferElement buf
long seqNum
| Constructor Detail |
|---|
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 Detail |
|---|
public ATcpConnection getConnection()
public byte[] getBytes()
public int size()
public BufferElement getBufferElement()
public long getSequenceNumber()
public java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||