/// <exception cref="System.Exception"/> public override void MessageReceived(ChannelHandlerContext ctx, MessageEvent e) { RpcResponse r = (RpcResponse)e.GetMessage(); byte[] fragmentHeader = XDR.RecordMark(r.Data().ReadableBytes(), true); ChannelBuffer header = ChannelBuffers.WrappedBuffer(fragmentHeader); ChannelBuffer d = ChannelBuffers.WrappedBuffer(header, r.Data()); e.GetChannel().Write(d); }
/// <exception cref="System.Exception"/> public override void MessageReceived(ChannelHandlerContext ctx, MessageEvent e) { RpcResponse r = (RpcResponse)e.GetMessage(); e.GetChannel().Write(r.Data(), r.RemoteAddress()); }