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()); } }
//--------------------------------------------------------------------- public GatewayClientObserver(GatewaySession session) { this.session = session; }