@ Override public long write ( ByteBuffer [ ] srcs , int offset , int length ) throws IOException { appWrite . compact ( ) ; long len = ByteBuffers . move ( srcs , offset , length , appWrite ) ; appWrite . flip ( ) ; wrap ( ) ; return len ; }
Writes ByteBuffer to peer . Starts handshaking if needed .