internal int Receive(byte[] message) { try { return socket.Receive(message); } catch (Exception ex) { if (OnError != null) this.OnError(this, new ProtocolErrorEventArgs(ex)); return 0; } }