Ejemplo n.º 1
0
        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;
        }
Ejemplo n.º 2
0
 internal MyStream(MyOctets oct)
 {
     this.Oct = oct;
 }
Ejemplo n.º 3
0
 internal MyStream(int count)
 {
     this.Oct = new MyOctets(count);
 }
Ejemplo n.º 4
0
 internal MyStream()
 {
     this.Oct = new MyOctets();
 }
Ejemplo n.º 5
0
 internal void Write(MyOctets oct)
 {
     Write(oct.Datas, 0, oct.Count);
 }