public TdrError.ErrorType visualize(ref TdrVisualBuf destBuf, int indent, char separator) { TdrError.ErrorType errorType = TdrBufUtil.printString(ref destBuf, indent, separator, "[szHeaderName]", this.szHeaderName); if (errorType != TdrError.ErrorType.TDR_NO_ERROR) { return(errorType); } errorType = TdrBufUtil.printString(ref destBuf, indent, separator, "[szHeaderContent]", this.szHeaderContent); if (errorType != TdrError.ErrorType.TDR_NO_ERROR) { return(errorType); } return(errorType); }
public TdrError.ErrorType visualize(ref TdrVisualBuf destBuf, int indent, char separator) { TdrError.ErrorType errorType = TdrBufUtil.printString(ref destBuf, indent, separator, "[szRequestMethod]", this.szRequestMethod); if (errorType != TdrError.ErrorType.TDR_NO_ERROR) { return(errorType); } errorType = TdrBufUtil.printString(ref destBuf, indent, separator, "[szRequestUri]", this.szRequestUri); if (errorType != TdrError.ErrorType.TDR_NO_ERROR) { return(errorType); } errorType = TdrBufUtil.printString(ref destBuf, indent, separator, "[szHttpVersion]", this.szHttpVersion); if (errorType != TdrError.ErrorType.TDR_NO_ERROR) { return(errorType); } return(errorType); }
public TdrError.ErrorType visualize(ref TdrVisualBuf destBuf, int indent, char separator) { TdrError.ErrorType errorType = TdrBufUtil.printString(ref destBuf, indent, separator, "[szHttpVersion]", this.szHttpVersion); if (errorType != TdrError.ErrorType.TDR_NO_ERROR) { return(errorType); } errorType = TdrBufUtil.printString(ref destBuf, indent, separator, "[szStatusCode]", this.szStatusCode); if (errorType != TdrError.ErrorType.TDR_NO_ERROR) { return(errorType); } errorType = TdrBufUtil.printString(ref destBuf, indent, separator, "[szReasonPhrase]", this.szReasonPhrase); if (errorType != TdrError.ErrorType.TDR_NO_ERROR) { return(errorType); } return(errorType); }
/* set indent = -1 to disable indent , default: separator = '\n' */ public TdrError.ErrorType visualize(ref TdrVisualBuf destBuf, int indent, char separator) { TdrError.ErrorType ret = TdrError.ErrorType.TDR_NO_ERROR; /* visualize member: this.iMaxOnline */ ret = TdrBufUtil.printVariable(ref destBuf, indent, separator, "[iMaxOnline]", "{0:d}", this.iMaxOnline); if (TdrError.ErrorType.TDR_NO_ERROR != ret) { #if (DEBUG) StackTrace st = new StackTrace(true); for (int i = 0; i < st.FrameCount; i++) { if (null != st.GetFrame(i).GetFileName()) { Console.WriteLine("TSF4G_TRACE: " + st.GetFrame(i).ToString()); } } #endif return(ret); } /* visualize member: this.iCurrentOnline */ ret = TdrBufUtil.printVariable(ref destBuf, indent, separator, "[iCurrentOnline]", "{0:d}", this.iCurrentOnline); if (TdrError.ErrorType.TDR_NO_ERROR != ret) { #if (DEBUG) StackTrace st = new StackTrace(true); for (int i = 0; i < st.FrameCount; i++) { if (null != st.GetFrame(i).GetFileName()) { Console.WriteLine("TSF4G_TRACE: " + st.GetFrame(i).ToString()); } } #endif return(ret); } /* visualize member: this.szConnectUrl */ ret = TdrBufUtil.printString(ref destBuf, indent, separator, "[szConnectUrl]", this.szConnectUrl); if (TdrError.ErrorType.TDR_NO_ERROR != ret) { #if (DEBUG) StackTrace st = new StackTrace(true); for (int i = 0; i < st.FrameCount; i++) { if (null != st.GetFrame(i).GetFileName()) { Console.WriteLine("TSF4G_TRACE: " + st.GetFrame(i).ToString()); } } #endif return(ret); } /* visualize member: this.szPingUrl */ ret = TdrBufUtil.printString(ref destBuf, indent, separator, "[szPingUrl]", this.szPingUrl); if (TdrError.ErrorType.TDR_NO_ERROR != ret) { #if (DEBUG) StackTrace st = new StackTrace(true); for (int i = 0; i < st.FrameCount; i++) { if (null != st.GetFrame(i).GetFileName()) { Console.WriteLine("TSF4G_TRACE: " + st.GetFrame(i).ToString()); } } #endif return(ret); } return(ret); }