Beispiel #1
0
 static Robot()
 {
   Thread.MemoryBarrier();
   Robot.configurableFactory = (IOStreamFactory) new Robot\u00241();
   Robot.__\u003C\u003Eclient = new NetworkTableClient(Robot.configurableFactory);
   Robot.provider = new NetworkTableProvider((NetworkTableNode) Robot.__\u003C\u003Eclient);
   NetworkTable.setTableProvider(Robot.provider);
 }
 public NetworkTableClient(IOStreamFactory iosf, NetworkTableEntryTypeManager ntetm, NTThreadManager nttm)
 {
   NetworkTableClient networkTableClient = this;
   ClientNetworkTableEntryStore cntes;
   this.init((AbstractNetworkTableEntryStore) (cntes = new ClientNetworkTableEntryStore((AbstractNetworkTableEntryStore.TableListenerManager) this)));
   this.adapter = new ClientConnectionAdapter(cntes, nttm, iosf, (ClientConnectionListenerManager) this, ntetm);
   this.writeManager = new WriteManager((FlushableOutgoingEntryReceiver) this.adapter, nttm, this.getEntryStore(), 1000L);
   this.getEntryStore().setOutgoingReceiver((OutgoingEntryReceiver) new TransactionDirtier((OutgoingEntryReceiver) this.writeManager));
   this.getEntryStore().setIncomingReceiver(OutgoingEntryReceiver.NULL);
   this.writeManager.start();
 }
 public ClientConnectionAdapter(ClientNetworkTableEntryStore cntes, NTThreadManager nttm, IOStreamFactory iosf, ClientConnectionListenerManager cclm, NetworkTableEntryTypeManager ntetm)
 {
   base.\u002Ector();
   ClientConnectionAdapter connectionAdapter = this;
   this.connectionState = ClientConnectionState.__\u003C\u003EDISCONNECTED_FROM_SERVER;
   this.connectionLock = (object) new Object();
   this.entryStore = cntes;
   this.streamFactory = iosf;
   this.threadManager = nttm;
   this.connectionListenerManager = cclm;
   this.typeManager = ntetm;
 }
 public NetworkTableClient(IOStreamFactory iosf)
   : this(iosf, new NetworkTableEntryTypeManager(), (NTThreadManager) new DefaultThreadManager())
 {
 }