1
0
mirror of https://github.com/haiwen/libsearpc.git synced 2025-09-04 22:30:54 +00:00
Files
libsearpc/pysearpc/transport.py

13 lines
343 B
Python
Raw Normal View History

2018-08-04 14:12:50 +08:00
2019-06-06 17:36:19 +08:00
from builtins import object
2018-08-04 14:12:50 +08: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 14:12:50 +08:00
raise NotImplementedError
2018-08-04 14:37:07 +08:00
def send(self, service_name, request_str):
raise NotImplementedError