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