OutgoingTCPClientPacket
public OutgoingTCPClientPacket(TCPConnector connector,
byte[] bytes,
int offset,
int length,
OutgoingTCPClientPacket previousPacket)
throws ConnectorCannotSendPacketException
Constructs a new outgoing packet for an existing TCP Connector.
Use this class to send data from the TCP Connector to a server.
This is an outgoing message that will remain in the servers thread pool
as a job for the thread pool workers.
- Parameters:
TCPConnector
- is the TCPConnector where this message belongs to.bytes
- is the byte array to be sent.offset
- is the position in the data buffer at witch to begin sending.length
- is the number of the bytes to be send.previousPacket
- is the previous outgoing packet of the TCPConnector.
- Throws:
ConnectorCannotSendPacketException