Beispiel #1
0
 void OnDestroy()
 {
     if (_server != null) {
         _server.Dispose();
         _server = null;
     }
 }
Beispiel #2
0
 // Use this for initialization
 void Start()
 {
     _requests = new Queue<NtpRequest>();
     var serverEndpoint = new IPEndPoint(IPAddress.Any, listenPort);
     _server = new nobnak.OSC.OscServer(serverEndpoint);
     _server.OnReceive += HandleReceived;
     _server.OnError += delegate(System.Exception obj) {
         Debug.Log(obj);
     };
 }