public bool Process() { if (_client.Client == null || _client.Available == 0) { return(false); } IPEndPoint sender = _host; byte[] data = _client.Receive(ref sender); _connection.ReceivedEncryptedUdp(data); return(true); }
public void Process() { if (_client.Client == null) { return; } if (_client.Available == 0) { return; } IPEndPoint sender = _host; byte[] data = _client.Receive(ref sender); _connection.ReceivedEncryptedUdp(data); }