Hololens/Lib/UdpSockets.cs
//###########################################################################################
/// <summary>
/// Send a message to host.
/// </summary>
/// <param name="b"> the message as byte array </param>
/// <param name="start"> the start index for reading the byte array </param>
/// <param name="len"> the length of byte array to read </param>
Send a message to host.
Send a message to host .
public void Send(byte[] b, int start, int len)
        {
            if (len > b.Length - start) len = b.Length - start;
            _outStream.Write(b, start, len);
            _outStream.Flush();
        }
public void Send ( byte [ ] b , int start , int len ) { if ( len > b . Length - start ) len = b . Length - start ; _outStream . Write ( b , start , len ) ; _outStream . Flush ( ) ; }
Send a message to host.
Send a message to host .
// if message length is bigger than byte array length from start index
b
byte[]
the message as byte array
the message as byte array
start
int
the start index for reading the byte array
the start index for reading the byte array
len
int
the length of byte array to read
the length of byte array to read