Loading src/windows/tcp.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -224,8 +224,8 @@ void netplus::tcp::connect(socket *ssock){ std::cout << ((struct addrinfo*)_SocketInfo)->ai_socktype << std::endl; if( (_Socket=::WSASocketW(((struct addrinfo*)_SocketInfo)->ai_family, SOCK_STREAM,((struct addrinfo*)_SocketInfo)->ai_socktype ,nullptr,0,WSA_FLAG_OVERLAPPED)) < 0 ){ if( (_Socket=::WSASocketW(((struct addrinfo*)_SocketInfo)->ai_family, ((struct addrinfo*)_SocketInfo)->ai_socktype, ((struct addrinfo*)_SocketInfo)->ai_protocol, nullptr, 0, WSA_FLAG_OVERLAPPED)) < 0 ){ NetException exception; exception[NetException::Error] << "Create Socket " << (int) _Socket << " failed : " << GetLastError(); throw exception; Loading Loading
src/windows/tcp.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -224,8 +224,8 @@ void netplus::tcp::connect(socket *ssock){ std::cout << ((struct addrinfo*)_SocketInfo)->ai_socktype << std::endl; if( (_Socket=::WSASocketW(((struct addrinfo*)_SocketInfo)->ai_family, SOCK_STREAM,((struct addrinfo*)_SocketInfo)->ai_socktype ,nullptr,0,WSA_FLAG_OVERLAPPED)) < 0 ){ if( (_Socket=::WSASocketW(((struct addrinfo*)_SocketInfo)->ai_family, ((struct addrinfo*)_SocketInfo)->ai_socktype, ((struct addrinfo*)_SocketInfo)->ai_protocol, nullptr, 0, WSA_FLAG_OVERLAPPED)) < 0 ){ NetException exception; exception[NetException::Error] << "Create Socket " << (int) _Socket << " failed : " << GetLastError(); throw exception; Loading