1
0
mirror of https://github.com/haiwen/libsearpc.git synced 2025-06-18 18:07:26 +00:00
libsearpc/pysearpc/test_pysearpc.py

18 lines
341 B
Python
Raw Normal View History

2011-04-08 12:58:15 +00:00
import sys
2012-06-03 16:19:16 +00:00
sys.path += ['..']
2011-04-08 12:58:15 +00:00
from pysearpc import SearpcClient, searpc_func, SearpcError
class SampleRpcClient(SearpcClient):
def call_remote_func_sync(self, fcall_str):
return ""
2012-06-03 16:19:16 +00:00
@searpc_func("void", ["string", "int"])
2011-04-08 12:58:15 +00:00
def list_peers(self):
pass
client = SampleRpcClient()
2012-06-03 16:19:16 +00:00
client.list_peers("id", 10)