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