1
0
mirror of https://github.com/haiwen/libsearpc.git synced 2025-04-27 18:25:06 +00:00
libsearpc/pysearpc/transport.py
Xiangyue Cai b0079d2a0c
configure with python3 (#53)
* configure with python3

* remove future
2020-06-08 15:09:06 +08:00

11 lines
314 B
Python

class SearpcTransport(object):
"""
A transport is repsonsible to send the serialized request to the
server, and get back the raw response from the server.
"""
def connect(self):
raise NotImplementedError
def send(self, service_name, request_str):
raise NotImplementedError