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

Improve README and demo

This commit is contained in:
plt
2011-05-18 11:06:01 +08:00
parent 02eb0744fc
commit c2bc98f295
10 changed files with 213 additions and 900 deletions

View File

@@ -14,7 +14,7 @@
#define BUFLEN 256
static int
searpc_demo_int__string(const char *str)
searpc_strlen(const char *str)
{
if (str == NULL)
return -1;
@@ -27,8 +27,13 @@ start_rpc_service(void)
{
searpc_server_init();
searpc_server_register_function(searpc_demo_int__string,
"searpc_demo_int__string",
/* The first parameter is the implementation function.
* The second parameter is the name of the rpc function the
* client would call.
* The third parameter is the signature.
*/
searpc_server_register_function(searpc_strlen,
"searpc_strlen",
searpc_signature_int__string());
}