* @throws IOException
*/
protected SynchChannel createSynchChannel(SocketChannel socketChannel) throws IOException {
SynchChannel channel = new NIOSynchChannel(socketChannel);
if( createWriteBufferedChannels ) {
channel = new WriteBufferedSynchChannel(channel, ByteBufferPacket.createDefaultBuffer(useDirectBuffers));
}
return channel;
}