ThdLinker(int sendBufferSize, int receiveBufferSize, NetExceptionProcess excProcess) { this._sendTransitOct = new MyOctets(); this._sendBuffer = new MyStream(); this._receiveTransitStream = new MyStream(1024); this._receiveBuffer = new byte[1024]; this._sendEvent = new AutoResetEvent(false); this._sendBufferSize = sendBufferSize; this._receiveBufferSize = receiveBufferSize; if (excProcess == null) { throw new Exception("parameter 'excProcess' can't be null!!"); } this._excProcess = excProcess; }
internal MyStream(MyOctets oct) { this.Oct = oct; }
internal MyStream(int count) { this.Oct = new MyOctets(count); }
internal MyStream() { this.Oct = new MyOctets(); }
internal void Write(MyOctets oct) { Write(oct.Datas, 0, oct.Count); }