1
0
mirror of https://github.com/haiwen/libsearpc.git synced 2025-08-31 12:27:10 +00:00
Files
libsearpc/pysearpc/transport.py

17 lines
403 B
Python
Raw Normal View History

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 send(self, request_str):
raise NotImplementedError
2018-08-04 14:37:07 +08:00
class NamedPipeTransport(SearpcTransport):
def __init__(self, pipe_path):
self.pipe_path = pipe_path
def send(self, fcall_str):
pass