Commit 1e5772bc authored by jan.koester's avatar jan.koester
Browse files

test

parent c6fd81a9
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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;