mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-30 00:00:16 +01:00
windows: client connect: use sockaddr size
This commit is contained in:
parent
754d2b4578
commit
065035ecd5
1 changed files with 7 additions and 1 deletions
|
@ -105,7 +105,13 @@ lws_client_connect_check(struct lws *wsi, int *real_errno)
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
||||||
if (!connect(wsi->desc.sockfd, (const struct sockaddr *)&wsi->sa46_peer.sa4, 0))
|
if (!connect(wsi->desc.sockfd, (const struct sockaddr *)&wsi->sa46_peer.sa4,
|
||||||
|
#if defined(WIN32)
|
||||||
|
sizeof(struct sockaddr)))
|
||||||
|
#else
|
||||||
|
0))
|
||||||
|
#endif
|
||||||
|
|
||||||
return LCCCR_CONNECTED;
|
return LCCCR_CONNECTED;
|
||||||
|
|
||||||
en = LWS_ERRNO;
|
en = LWS_ERRNO;
|
||||||
|
|
Loading…
Add table
Reference in a new issue