fix ws curl error message + some Windows warnings

This commit is contained in:
Benjamin Sergeant
2020-12-12 11:00:55 -08:00
parent 2fac4bd9ef
commit 93ad709dfd
6 changed files with 12 additions and 5 deletions

View File

@ -35,7 +35,7 @@ namespace ix
{
errMsg = "no error";
int fd = socket(address->ai_family, address->ai_socktype, address->ai_protocol);
socket_t fd = socket(address->ai_family, address->ai_socktype, address->ai_protocol);
if (fd < 0)
{
errMsg = "Cannot create a socket";