public static void WriteChannelCommit(Org.Jboss.Netty.Channel.Channel channel, XDR @out, int xid) { if (RpcProgramNfs3.Log.IsDebugEnabled()) { RpcProgramNfs3.Log.Debug("Commit done:" + xid); } ChannelBuffer outBuf = XDR.WriteMessageTcp(@out, true); channel.Write(outBuf); }
/// <summary>Send a write response to the netty network socket channel</summary> public static void WriteChannel(Org.Jboss.Netty.Channel.Channel channel, XDR @out , int xid) { if (channel == null) { RpcProgramNfs3.Log.Info("Null channel should only happen in tests. Do nothing."); return; } if (RpcProgramNfs3.Log.IsDebugEnabled()) { RpcProgramNfs3.Log.Debug(WriteRpcEnd + xid); } ChannelBuffer outBuf = XDR.WriteMessageTcp(@out, true); channel.Write(outBuf); }