예제 #1
0
 public ConnectionWriter(ConnectionStream stream, int BDataBlocks, int BDataLenght) {
     if (stream == null) throw new ArgumentNullException("stream");
     if (BDataBlocks <= 0) throw new ArgumentException("BDataBlocks");
     if (BDataLenght <= 0) throw new ArgumentException("BDataLenght");
     _outStream = stream;
     _BDataBlocks = BDataBlocks;
     _BDataLenght = BDataLenght;
     _syncObject = new Semaphore(_BDataBlocks, _BDataBlocks);
 }
예제 #2
0
 public ConnectionWriter(ConnectionStream stream, int BDataBlocks, int BDataLenght)
 {
     if (stream == null)
     {
         throw new ArgumentNullException("stream");
     }
     if (BDataBlocks <= 0)
     {
         throw new ArgumentException("BDataBlocks");
     }
     if (BDataLenght <= 0)
     {
         throw new ArgumentException("BDataLenght");
     }
     _outStream   = stream;
     _BDataBlocks = BDataBlocks;
     _BDataLenght = BDataLenght;
     _syncObject  = new Semaphore(_BDataBlocks, _BDataBlocks);
 }
예제 #3
0
 public ConnectionWriter(ConnectionStream stream)
     : this(stream, stream.Connection.Application.BDataBlocks,
            stream.Connection.Application.BDataLenght)
 {
 }
예제 #4
0
        public ConnectionWriter(ConnectionStream stream)
            : this(stream, stream.Connection.Application.BDataBlocks,
            stream.Connection.Application.BDataLenght) {

        }