예제 #1
0
    private void OnMessageReceived(IPEndPoint endpoint, byte[] bytes)
    {
        var message = _serializer.ParseMessage(endpoint, bytes);

        if (message != null)
        {
            _messageProcessor.AddMessage(message);
        }

        _connection.Listen(OnMessageReceived);
    }