Hololens/Lib/UdpSockets.cs
//###########################################################################################
/// <summary>
/// Treatment when receive a message. Read the message with <see cref="ReadMessage"/> and decide what to do with <see cref="Reply"/>
/// </summary>
/// <param name="sender"> the socket that raised this event </param>
/// <param name="args"> contains information about message and message itself </param>
Treatment when receive a message. Read the message with  and decide what to do with
Treatment when receive a message . Read the message with and decide what to do with
private void Recv(DatagramSocket sender, DatagramSocketMessageReceivedEventArgs args)
        {
            if (!_connected)
            {
                _connected = true;
            }
            else
            {
                ReadMessage(args);
                Reply();
            }
        }
private void Recv ( DatagramSocket sender , DatagramSocketMessageReceivedEventArgs args ) { if ( ! _connected ) { _connected = true ; } else { ReadMessage ( args ) ; Reply ( ) ; } }
Treatment when receive a message.
Treatment when receive a message .
sender
DatagramSocket
the socket that raised this event
the socket that raised this event
args
DatagramSocketMessageReceivedEventArgs
contains information about message and message itself
contains information about message and message itself