Exemplo n.º 1
0
 internal TcAmsServerMarshaller(TcAmsServer server)
 {
     this._server             = server;
     this._receiveQueue       = new Queue <TcAmsCommand>();
     this._receiveQueueNotify = new Queue <TcAmsCommand>();
     this._receiveDelegate    = new UnsafeNativeMethods.AmsServerReceiveDelegate(this.OnAmsReceive);
     this.hdrBuffer           = new byte[TcAmsHeaderSize.TCAMSHEADER];
     this.headerStream        = new MemoryStream(this.hdrBuffer);
     this.headerReader        = new BinaryReader(this.headerStream);
 }
Exemplo n.º 2
0
 public TcAdsServer(ushort port, string portName)
 {
     this._amsServer = new TcAmsServer(port, portName);
 }
Exemplo n.º 3
0
 public TcAdsServer(string portName)
 {
     this._amsServer = new TcAmsServer(portName);
 }