Esempio n. 1
0
 public byte[] GetByteArray(ITcpConnection connection, Socket socket, int size = 4096, int offset = 0,
                            int timeout = 10000)
 {
     return(socket.Available == 0 ? null : connection.ReceiveData(socket, timeout, size, offset));
 }
 public byte[] GetByteArray(ITcpConnection connection, Socket socket, int size = 4096, int offset = 0,
     int timeout = 10000)
 {
     return socket.Available == 0 ? null : connection.ReceiveData(socket, timeout, size, offset);
 }