OutgoingTCPClientConnectionPacket
public OutgoingTCPClientConnectionPacket(TCPClientConnection client,
byte[] bytes,
int offset,
int length,
OutgoingTCPClientConnectionPacket previousPacket)
throws OutgoingPacketFailedException
Constructs a new outgoing packet for an existing TCP client connection.
Use this class to send data from the server to a connected client.
This is an outgoing message that will remain in the servers thread pool
as a job for the thread pool workers.
- Parameters:
client
- is the client 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 client.
- Throws:
OutgoingPacketFailedException