Пример #1
0
        public override void Connect()
        {
            Transport.Connect();
            SendToProtocol(this, X32OSCProtocol.PackageCopyright());
            SendToProtocol(this, X32OSCProtocol.PackageInfoRequest());

            return;
        }
Пример #2
0
 private void OnTimedEvent(object sender, ElapsedEventArgs e)
 {
     Protocol.ReceiveFromConsumer(this, X32OSCProtocol.PackageXRemotePing());
     for (int i = 0; i < X32MaxRenewMeters; i++)
     {
         if (RenewMeters[i])
         {
             Protocol.ReceiveFromConsumer(this, X32OSCProtocol.RenewMeter(i + 1));
         }
     }
 }
Пример #3
0
 private void EstablishBroker()
 {
     X32Broker           = new Broker();
     Protocol            = new X32OSCProtocol();
     Transport           = new UDPTransportLayer();
     X32Broker.Transport = Transport;
     X32Broker.Protocol  = Protocol;
     Protocol.Broker     = X32Broker;
     Protocol.Consumer   = this;
     Transport.Broker    = X32Broker;
 }