Esempio n. 1
0
 private void Build(byte[] buffer)
 {
     _msg = new Received(new IPEndPoint(IPAddress.Any, 90), null, new BufferSlice(buffer, 0, buffer.Length, buffer.Length));
     if (_decoder == null)
     {
         _decoder = new MessageDecoder();
         _context = new MyCtx();
     }
 }
 private void Build(byte[] buffer)
 {
     _msg = new Received(new IPEndPoint(IPAddress.Any, 90), null, new BufferSlice(buffer, 0, buffer.Length, buffer.Length));
     if (_decoder == null)
     {
         _decoder = new MessageDecoder();
         _context = new MyCtx();
     }
 }