lsquic
lsquic copied to clipboard
echo_client does not work on Windows
file echo_client.c, line:121 st_h->read_stdin_ev = event_new(prog_eb(st_h->client_ctx->prog), STDIN_FILENO, EV_READ, read_stdin, st_h);
Thanks for the report -- what's the error? Does it crash?
Thanks for the report -- what's the error? Does it crash?
It's quit with the event_base_loop return -1.
Thanks for the report -- what's the error? Does it crash? winsock's select function only works on sockets, and stdin is not a socket. ref: https://docs.microsoft.com/zh-cn/windows/win32/api/winsock2/nf-winsock2-select?redirectedfrom=MSDN
Thank you for pointing this out to me. My first impulse is to mark this TODO and stop compiling echo client and server on Windows.