示例#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);
 }
示例#2
0
 public TcAdsServer(ushort port, string portName)
 {
     this._amsServer = new TcAmsServer(port, portName);
 }
示例#3
0
 public TcAdsServer(string portName)
 {
     this._amsServer = new TcAmsServer(portName);
 }