--- libaitrpc/example/tsrv.c 2011/08/19 08:24:13 1.2.4.4 +++ libaitrpc/example/tsrv.c 2011/08/19 12:51:50 1.2.4.7 @@ -3,6 +3,7 @@ #include + int aaa(rpc_func_t *f, int in, rpc_val_t *iv) { rpc_blob_t *b; @@ -82,13 +83,14 @@ int main() pthread_t tid[2]; 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) { printf("error:: errno=%d %s\n", rpc_GetErrno(), rpc_GetError()); 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()); return 1; }