Beispiel #1
0
        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);
        }
Beispiel #2
0
            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);
            }