task.setByteBuffer(protocolInfo.byteBuffer);
task.setSelectionKey(protocolInfo.key);
task.setSecure(protocolInfo.isSecure);
task.setSSLEngine(protocolInfo.sslEngine);
task.setOutputBB(protocolInfo.outputBB);
task.doTask();
protocolInfo.inputBB = task.getBuffer();
protocolInfo.bytesRead = task.getBuffer().position();
protocolInfo.byteBuffer = task.getBuffer();
Endpoint remoteHost = task.getEndpoint();