Hololens/Lib/UdpSockets.cs
//###########################################################################################
/// <summary>
/// Overrided method that specify action to do after receiving a message.
/// Split the message in order to get the list of received command.
/// </summary>
Overrided method that specify action to do after receiving a message.
Split the message in order to get the list of received command.
Overrided method that specify action to do after receiving a message . Split the message in order to get the list of received command .
protected override void Reply()
        {
            if (_message != "" && _message.Length > 1)
            {
                var message = _message.Split(';');
                _reply = "";
                _nb_reply = message.Length;
                foreach (var m in message)
                {
                    var coords = m.Split(',');
                    var x = float.Parse(coords[0]);
                    var y = float.Parse(coords[1]);
                    DepthTestFunction?.Invoke(x, y);
                }
            }
        }
protected override void Reply ( ) { if ( _message != " " && _message . Length > 1 ) { var message = _message . Split ( ' ' ) ; _reply = " " ; _nb_reply = message . Length ; foreach ( var m in message ) { var coords = m . Split ( ' ' ) ; var x = float . Parse ( coords [ 0 ] ) ; var y = float . Parse ( coords [ 1 ] ) ; DepthTestFunction ? . Invoke ( x , y ) ; } } }
Overrided method that specify action to do after receiving a message.
Overrided method that specify action to do after receiving a message .