windows: _snprintf expected wrong parameter type in string
windows: "else" keyword is missing
windows: incorrect check for SOCKET_ERROR