public ByteReceiver(Socket socket, IIOCPSocketController IO) { _io = IO; _socket = socket; _size = new ByteTransmitter(socket, 4, IO); _size.OnReceived += new ReceivedEvent(_size_OnReceived); }
public ByteTransmitter(Socket socket, int Size, IIOCPSocketController IO) { _io = IO; _socket = socket; _buffer = new byte[Size]; }
public ByteTransmitter(Socket socket, byte[] buffer, IIOCPSocketController IO) { _io = IO; _socket = socket; _buffer = buffer; }