Esempio n. 1
0
 public TransportGatewayAsync(TelegramDC dc)
 {
     this.dc           = dc;
     socket            = null;
     input             = new CborInputMoveBuffer(512 * 1024);
     input.InputEvent += CheckInput;
 }
Esempio n. 2
0
 public TransportGateway() {
     socket = null;
     state = NetworkGatewayState.INIT;
     //inputStream = new MemoryStream(16000);
     input = new CborInputMoveBuffer(512 * 1024);
     input.InputEvent += CheckInput;
 }
Esempio n. 3
0
 public TransportGateway()
 {
     socket = null;
     state  = NetworkGatewayState.INIT;
     //inputStream = new MemoryStream(16000);
     input             = new CborInputMoveBuffer(512 * 1024);
     input.InputEvent += CheckInput;
 }
Esempio n. 4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CborObjectStream"/> class.
 /// </summary>
 /// <param name="input">
 /// The input.
 /// </param>
 public CborObjectStream(CborInput input)
     : base(new CborReader(input))
 {
     this.input = input;
 }
Esempio n. 5
0
 public CborDynamicReader()
 {
     input = new CborInputChunks();
     reader = new CborReader(input);
     parser = new CborDynamicParser();
     reader.Listener = parser;
 }
Esempio n. 6
0
        /// <summary>
        /// Initializes a new instance of the <see cref="CborReader"/> class.
        /// </summary>
        /// <param name="input">
        /// The input.
        /// </param>
        public CborReader(CborInput input)
        {
            this._input = input;

            // _listener = listener;
            this._input.InputEvent += this.InputOnInputEvent;

            // InputOnInputEvent();
        }
Esempio n. 7
0
 public TransportGatewayAsync(TelegramDC dc) {
     this.dc = dc;
     socket = null;
     input = new CborInputMoveBuffer(512 * 1024);
     input.InputEvent += CheckInput;
 }