Beispiel #1
0
def hello():
    tid = next_id()
    return pb.ClientMsg(hi=pb.ClientHi(id=tid,
                                       user_agent=APP_NAME + "/" + VERSION +
                                       " gRPC-python",
                                       ver=VERSION,
                                       lang="EN"))
Beispiel #2
0
def hiMsg(id):
    onCompletion[str(id)] = lambda params: print_server_params(params)
    return pb.ClientMsg(hi=pb.ClientHi(id=str(id),
                                       user_agent=APP_NAME + "/" + VERSION +
                                       " gRPC-python",
                                       ver=VERSION,
                                       lang="EN"))
def hello():
    tid = next_id()
    add_future(tid, {
        'action': lambda unused, params: server_version(params),
    })
    return pb.ClientMsg(hi=pb.ClientHi(id=tid, user_agent=APP_NAME + "/" + APP_VERSION + " (" +
        platform.system() + "/" + platform.release() + "); gRPC-python/" + LIB_VERSION,
        ver=LIB_VERSION, lang="EN"))
Beispiel #4
0
def hello():
    tid = next_id()
    return pb.ClientMsg(hi=pb.ClientHi(id=tid,
                                       user_agent=APP_NAME + "/" +
                                       APP_VERSION + " (" + platform.system() +
                                       "/" + platform.release() +
                                       "); gRPC-python/" + LIB_VERSION,
                                       ver=LIB_VERSION,
                                       lang="EN"))