final int receiverPort, final boolean retry) throws IOException {
checkSocketState();
ByteBuffer b = ByteBuffer.wrap(message);
try {
sslStateMachine.wrap(b, ByteBufferFactory.getInstance().allocateDirect(netBufferMax), new MessageSendCallback() {
@Override
public void doSend(byte[] bytes) throws IOException {
NioTlsWebSocketMessageChannel.super.sendTCPMessage(bytes,
receiverAddress, receiverPort, retry);