1
0
mirror of https://github.com/haiwen/libsearpc.git synced 2025-09-12 12:59:30 +00:00

add all files

This commit is contained in:
lins05
2011-04-08 20:58:15 +08:00
parent a4017c7c3e
commit 13d68a1c86
41 changed files with 41778 additions and 0 deletions

22
tests/test_pysearpc.py Normal file
View File

@@ -0,0 +1,22 @@
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")