1
0
mirror of https://github.com/haiwen/libsearpc.git synced 2025-06-19 18:31:54 +00:00
libsearpc/pysearpc/transport.py
2019-06-06 17:36:19 +08:00

13 lines
343 B
Python

from builtins import object
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