public interface Connection extends Closeable
void send(byte[] data)
throws IOException
data.length bytes from the specified byte array
to this connectiondata - an array of byte.IOException - if any.int recv(byte[] data)
throws IOException
data. The number of bytes actually read is
returned as an integer.data - an array of byte.IOException - if any.Copyright © 2015. All rights reserved.