Exemplo n.º 1
0
 def __init__(self, address):
     channel = grpc.insecure_channel(
         address,
         options=[('grpc.max_send_message_length', 1024**3),
                  ('grpc.max_receive_message_length', 1024**3)])
     self.stub = chunk_pb2_grpc.FileServerStub(channel)
     # default chunk size of 1 MB
     self.chunk_size = 1024**2
     self.response_cbs = []
Exemplo n.º 2
0
 def __init__(self, address):
     channel = grpc.insecure_channel(address)
     self.stub = chunk_pb2_grpc.FileServerStub(channel)