bit better sockets
This commit is contained in:
parent
c4d1ffe539
commit
aa08240ec9
4 changed files with 111 additions and 25 deletions
2
http.c
2
http.c
|
|
@ -289,7 +289,7 @@ http_response_t hcliSendRequest(http_client_t *ctx, http_request_t *req) {
|
|||
goto skopen_error;
|
||||
}
|
||||
|
||||
ctx->socket = skOpen();
|
||||
ctx->socket = skOpen(SOCK_TCP);
|
||||
if(ctx->socket == INVALID_SOCKET) {
|
||||
err("couldn't open socket %s", skGetErrorString());
|
||||
goto error;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue