コード例 #1
0
 public WebServerResponse(string method, string methodLine, WebAgentHead heads, string body)
 {
     this.method     = method;
     this.methodLine = methodLine;
     this.heads      = heads;
     this.body       = body;
 }
コード例 #2
0
 public WebAgentClientRequestAPI(string method, string methodLine, WebAgentHead heads, string body)
 {
     this.method     = method;
     this.methodLine = methodLine;
     this.heads      = heads;
     this.body       = body;
 }
コード例 #3
0
 public WebServerResponse()
 {
     method     = "";
     methodLine = "";
     heads      = new WebAgentHead();
     body       = "";
 }
コード例 #4
0
 public WebAgentClientRequestAPI()
 {
     method     = "";
     methodLine = "";
     heads      = new WebAgentHead();
     body       = "";
 }
コード例 #5
0
 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);
 }
コード例 #6
0
 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;
 }
コード例 #7
0
 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;
 }
コード例 #8
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);
        }
コード例 #9
0
 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);
 }
コード例 #10
0
        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);
        }