132 doRpcClientToGoSvc(int(args[1]))
133 else:
134 print("Usage: test.py " +
135 "[testdata|rpc-server|rpc-client-python-service|rpc-client-go-service] ...")136
137if __name__ == "__main__":
138 doMain(sys.argv[1:])
83def doRpcServer(port, stopTimeSec):
84 class EchoHandler(object):
85 def Echo123(self, msg1, msg2, msg3):
86 return ("1:%s 2:%s 3:%s" % (msg1.decode("utf-8"), msg2.decode("utf-8"), msg3.decode("utf-8"))) 87 def EchoStruct(self, msg):
88 return ("%s" % msg)
89
57 "uint16(1616)": 1616 },
58 { "list": [1616, 32323232, True, -3232.0, {"TRUE":True, "FALSE":False}, [True, False] ],
59 "int32":32323232, "bool": True,
60 "LONG STRING": u"123456789012345678901234567890123456789012345678901234567890", 61 "SHORT STRING": u"1234567890" },
62 { True: "true", 138: False, "false": 200 }
63 ]
55 { "true": u"True",
56 "false": False,
57 "uint16(1616)": 1616 },
58 { "list": [1616, 32323232, True, -3232.0, {"TRUE":True, "FALSE":False}, [True, False] ], 59 "int32":32323232, "bool": True,
60 "LONG STRING": u"123456789012345678901234567890123456789012345678901234567890",
61 "SHORT STRING": u"1234567890" },
Line length greater than configured max_line_length
detected, defaults to 79 character. This limit can be configured docs