public int SendToClient(byte[] data) { if (_clientS == null || !_clientS.Connected) { return(0); } lock (_sendToClientLock) { if (ServerEncrypt != null) { data = ServerEncrypt.SafeParse(data); } return(_clientS.Send(data)); } }
public override int SendToClient(byte[] Data) { if (ClientS != null && ClientS.Connected) { lock (SendToClientLock) { if (ServerEncrypt != null) { Data = ServerEncrypt.SafeParse(Data); } return(ClientS.Send(Data)); } } else { return(0); } }