some x-client code
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-04-22 19:09:24 +09:00
parent 189ceb6d3a
commit d2a70a2292
3 changed files with 326 additions and 10 deletions

View File

@ -779,7 +779,16 @@ int main (int argc, char* argv[])
set_signal (SIGINT, handle_sigint);
set_signal_to_ignore (SIGPIPE);
#if 0
n = hcl_client_connect(client, argv[opt.ind], reuse_addr);
if (n <= -1)
{
fprintf (stderr, "ERROR: %s\n", hcl_client_geterrbmsg(client));
goto oops;
}
#else
n = handle_request(client, argv[opt.ind], argv[opt.ind + 1], reuse_addr, shut_wr_after_req);
#endif
set_signal_to_default (SIGINT);
set_signal_to_default (SIGPIPE);