version 1.12, 2013/07/16 13:04:20
|
version 1.12.6.1, 2013/08/22 12:01:36
|
Line 97 int xYz(rpc_cli_t *cli, struct tagRPCCall *rpc, array_
|
Line 97 int xYz(rpc_cli_t *cli, struct tagRPCCall *rpc, array_
|
return 0; |
return 0; |
} |
} |
|
|
int main() | int main(int argc, char **argv) |
{ |
{ |
rpc_func_t *f; |
rpc_func_t *f; |
int ret; |
int ret; |
|
|
srv = rpc_srv_initServer(2, 3, 1024 * 10, "0.0.0.0", 11111, SOCK_DGRAM); | if (argc > 1) |
// srv = rpc_srv_initServer(2, 2, 1024 * 10, "0.0.0.0", 11111, 0); | srv = rpc_srv_initServer(2, 3, 1024 * 10, "0.0.0.0", 11111, SOCK_DGRAM); |
| else |
| srv = rpc_srv_initServer(2, 2, 1024 * 10, "0.0.0.0", 11111, 0); |
if (!srv) { |
if (!srv) { |
printf("error:: errno=%d %s\n", rpc_GetErrno(), rpc_GetError()); |
printf("error:: errno=%d %s\n", rpc_GetErrno(), rpc_GetError()); |
return 1; |
return 1; |