public interface Sender
Modifier and Type | Method and Description |
---|---|
boolean |
send(byte[] buf)
Send a message part on a socket.
|
boolean |
send(byte[] buf,
int offset,
int length,
MessageFlag flag)
Send a message part on a socket.
|
boolean |
send(byte[] buf,
MessageFlag flag)
Send a message part on a socket.
|
boolean |
send(Message message)
Send the full message (all frames) on the socket.
|
boolean |
sendByteBuffer(ByteBuffer buf,
MessageFlag flag)
Send a message part on a socket from a byte buffer.
|
boolean send(byte[] buf)
buf
- The message bytesboolean send(byte[] buf, MessageFlag flag)
buf
- The message bytesflag
- Flag controlling behavior of the send operationboolean send(byte[] buf, int offset, int length, MessageFlag flag)
buf
- The message bytesoffset
- The buffer offsetlength
- The buffer lengthflag
- Flag controlling behavior of the send operationboolean sendByteBuffer(ByteBuffer buf, MessageFlag flag)
buf
- The byte bufferflag
- Flag controlling behavior of the send operationboolean send(Message message)
message
- The full messageCopyright © 2019. All rights reserved.