1
0
mirror of https://github.com/haiwen/libsearpc.git synced 2025-04-28 18:43:20 +00:00
libsearpc/pysearpc/transport.py

11 lines
314 B
Python
Raw Permalink Normal View History

2018-08-04 06:12:50 +00:00
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):
2018-08-04 06:12:50 +00:00
raise NotImplementedError
2018-08-04 06:37:07 +00:00
def send(self, service_name, request_str):
raise NotImplementedError