public WebServerResponse(string method, string methodLine, WebAgentHead heads, string body) { this.method = method; this.methodLine = methodLine; this.heads = heads; this.body = body; }
public WebAgentClientRequestAPI(string method, string methodLine, WebAgentHead heads, string body) { this.method = method; this.methodLine = methodLine; this.heads = heads; this.body = body; }
public WebServerResponse() { method = ""; methodLine = ""; heads = new WebAgentHead(); body = ""; }
public WebAgentClientRequestAPI() { method = ""; methodLine = ""; heads = new WebAgentHead(); body = ""; }
public int __decode(byte[] binData, ref int pos) { this.method = Proto4z.BaseProtoObject.decodeString(binData, ref pos); this.methodLine = Proto4z.BaseProtoObject.decodeString(binData, ref pos); this.heads = new WebAgentHead(); this.heads.__decode(binData, ref pos); this.body = Proto4z.BaseProtoObject.decodeString(binData, ref pos); return(pos); }
public WebServerRequest(uint fromServiceType, ulong fromServiceID, uint traceID, string ip, ushort port, string host, string uri, string webparams, WebAgentHead heads, byte isGet) { this.fromServiceType = fromServiceType; this.fromServiceID = fromServiceID; this.traceID = traceID; this.ip = ip; this.port = port; this.host = host; this.uri = uri; this.webparams = webparams; this.heads = heads; this.isGet = isGet; }
public byte isGet; //get or post public WebServerRequest() { fromServiceType = 0; fromServiceID = 0; traceID = 0; ip = ""; port = 0; host = ""; uri = ""; webparams = ""; heads = new WebAgentHead(); isGet = 0; }
public System.Collections.Generic.List <byte> __encode() { var data = new System.Collections.Generic.List <byte>(); data.AddRange(Proto4z.BaseProtoObject.encodeString(this.method)); data.AddRange(Proto4z.BaseProtoObject.encodeString(this.methodLine)); if (this.heads == null) { this.heads = new WebAgentHead(); } data.AddRange(this.heads.__encode()); data.AddRange(Proto4z.BaseProtoObject.encodeString(this.body)); return(data); }
public int __decode(byte[] binData, ref int pos) { this.fromServiceType = Proto4z.BaseProtoObject.decodeUI32(binData, ref pos); this.fromServiceID = Proto4z.BaseProtoObject.decodeUI64(binData, ref pos); this.traceID = Proto4z.BaseProtoObject.decodeUI32(binData, ref pos); this.ip = Proto4z.BaseProtoObject.decodeString(binData, ref pos); this.port = Proto4z.BaseProtoObject.decodeUI16(binData, ref pos); this.host = Proto4z.BaseProtoObject.decodeString(binData, ref pos); this.uri = Proto4z.BaseProtoObject.decodeString(binData, ref pos); this.webparams = Proto4z.BaseProtoObject.decodeString(binData, ref pos); this.heads = new WebAgentHead(); this.heads.__decode(binData, ref pos); this.isGet = Proto4z.BaseProtoObject.decodeUI8(binData, ref pos); return(pos); }
public System.Collections.Generic.List <byte> __encode() { var data = new System.Collections.Generic.List <byte>(); data.AddRange(Proto4z.BaseProtoObject.encodeUI32(this.fromServiceType)); data.AddRange(Proto4z.BaseProtoObject.encodeUI64(this.fromServiceID)); data.AddRange(Proto4z.BaseProtoObject.encodeUI32(this.traceID)); data.AddRange(Proto4z.BaseProtoObject.encodeString(this.ip)); data.AddRange(Proto4z.BaseProtoObject.encodeUI16(this.port)); data.AddRange(Proto4z.BaseProtoObject.encodeString(this.host)); data.AddRange(Proto4z.BaseProtoObject.encodeString(this.uri)); data.AddRange(Proto4z.BaseProtoObject.encodeString(this.webparams)); if (this.heads == null) { this.heads = new WebAgentHead(); } data.AddRange(this.heads.__encode()); data.AddRange(Proto4z.BaseProtoObject.encodeUI8(this.isGet)); return(data); }