version 1.2.4.4, 2011/08/19 08:24:13
|
version 1.2.4.7, 2011/08/19 12:51:50
|
Line 3
|
Line 3
|
#include <aitrpc.h> |
#include <aitrpc.h> |
|
|
|
|
|
|
int aaa(rpc_func_t *f, int in, rpc_val_t *iv) |
int aaa(rpc_func_t *f, int in, rpc_val_t *iv) |
{ |
{ |
rpc_blob_t *b; |
rpc_blob_t *b; |
Line 82 int main()
|
Line 83 int main()
|
pthread_t tid[2]; |
pthread_t tid[2]; |
int ret; |
int ret; |
|
|
srv = rpc_srv_initServer(100, 2, 1, SOCK_STREAM, AF_INET, "0.0.0.0", 11111); | srv = rpc_srv_initServer(100, 2, 1, AF_INET, "0.0.0.0", 11111); |
| // srv = rpc_srv_initServer(100, 2, 1, AF_LOCAL, "0.0.0.0", 11111); |
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; |
} |
} |
|
|
if (rpc_srv_initBLOBServer(srv, SOCK_STREAM, 0, "/tmp")) { | if (rpc_srv_initBLOBServer(srv, 0, "/tmp")) { |
printf("error:: errno=%d %s\n", rpc_GetErrno(), rpc_GetError()); |
printf("error:: errno=%d %s\n", rpc_GetErrno(), rpc_GetError()); |
return 1; |
return 1; |
} |
} |