public override String ToString() { PlainTextMessageCodec codec = new PlainTextMessageCodec(); ChannelBuffer buf = new ChannelBuffer(8192); codec.Encode(this, buf); buf.Reset(); buf.Skip(4); // get rid of length return(buf.ToString()); }
public override String ToString() { try { PlainTextMessageCodec codec = new PlainTextMessageCodec(); ChannelBuffer buf = new ChannelBuffer(8192); codec.Encode(this, buf); buf.Reset(); buf.Skip(4); // get rid of length return(buf.ToString()); } catch (Exception ex) { Cat.lastException = ex; return(""); } }
public override String ToString() { try { PlainTextMessageCodec codec = new PlainTextMessageCodec(); ChannelBuffer buf = new ChannelBuffer(8192); codec.Encode(this, buf); buf.Reset(); buf.Skip(4); // get rid of length return buf.ToString(); } catch (Exception ex) { Cat.lastException = ex; return ""; } }