Esempio n. 1
0
        public override void ChannelRead(IChannelHandlerContext context, object message)
        {
            var msg = message as IByteBuffer;

            msg.WithOrder(ByteOrder.BigEndian);

            GatewaySession session = null;

            if (mapSession.TryGetValue(context, out session))
            {
                session.onRecvData(msg.ToArray());
            }
        }
Esempio n. 2
0
 //---------------------------------------------------------------------
 public GatewayClientObserver(GatewaySession session)
 {
     this.session = session;
 }