示例#1
0
        public OscMessage SendAndReceive(OscPacket packet)
        {
            var messageBytes = packet.GetBytes();

            this._udpClient.Send(messageBytes, messageBytes.Count());
            Thread.Sleep(75);

            byte[] responseBytes;
            responseBytes = this._udpClient.Receive(ref this._consoleEndPoint);


            OscMessage response = OscMessage.GetPacket(responseBytes) as OscMessage;

            return(response);
        }