version 1.2.4.5, 2011/08/19 09:20:46
|
version 1.3, 2011/08/29 22:37:06
|
Line 3
|
Line 3
|
#include <aitrpc.h> |
#include <aitrpc.h> |
|
|
|
|
#define sTYPE SOCK_STREAM |
|
|
|
|
|
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 85 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, sTYPE, 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, sTYPE, 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; |
} |
} |