1
0
mirror of https://github.com/haiwen/libsearpc.git synced 2025-06-27 14:06:50 +00:00
libsearpc/pysearpc/transport.py

13 lines
343 B
Python
Raw Normal View History

2018-08-04 06:12:50 +00:00
2019-06-06 09:36:19 +00:00
from builtins import object
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