version 1.21, 2020/06/25 19:11:00
|
version 1.22, 2024/03/20 17:32:30
|
Line 23 int main(int argc, char **argv)
|
Line 23 int main(int argc, char **argv)
|
if (argc > 2) |
if (argc > 2) |
cli = rpc_cli_openClient(2, 1024 * 10, "127.0.0.1", 0, SOCK_RAW); |
cli = rpc_cli_openClient(2, 1024 * 10, "127.0.0.1", 0, SOCK_RAW); |
else |
else |
cli = rpc_cli_openClient(2, 1024 * 10, "127.0.0.1", 11111, SOCK_DGRAM); | cli = rpc_cli_openClient(2, 1024 * 10, "127.0.0.1", 11112, SOCK_DGRAM); |
} else |
} else |
// cli = rpc_cli_openClient(2, 1024 * 10, "93.123.104.1", 11111, 0); |
// cli = rpc_cli_openClient(2, 1024 * 10, "93.123.104.1", 11111, 0); |
cli = rpc_cli_openClient(2, 1024 * 10, "127.0.0.1", 11111, 0); | cli = rpc_cli_openClient(2, 1024 * 10, "127.0.0.1", 11112, 0); |
if (!cli) { |
if (!cli) { |
printf("error:: errno=%d %s\n", rpc_GetErrno(), rpc_GetError()); |
printf("error:: errno=%d %s\n", rpc_GetErrno(), rpc_GetError()); |
e_free(blob43); |
e_free(blob43); |