mirror of
https://github.com/haiwen/libsearpc.git
synced 2025-06-19 18:31:54 +00:00
23 lines
413 B
Python
23 lines
413 B
Python
|
|
import sys
|
|
sys.path += ['..', '../pysearpc/.libs']
|
|
|
|
from pysearpc import SearpcClient, searpc_func, SearpcError
|
|
import fcallfret
|
|
|
|
class SampleRpcClient(SearpcClient):
|
|
|
|
def call_remote_func_sync(self, fcall_str):
|
|
return ""
|
|
|
|
@searpc_func("void", ["string"])
|
|
def list_peers(self):
|
|
pass
|
|
|
|
fcallfret.fcall__string("list", "hello")
|
|
|
|
client = SampleRpcClient()
|
|
client.list_peers("10")
|
|
|
|
|