Commit 0bbb6479 authored by jan.koester's avatar jan.koester
Browse files

IMPORTEND

parent 82b57b33
Loading
Loading
Loading
Loading
+2
Changes for src/windows/socket.cpp: 2 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -111,6 +111,8 @@ void netplus::socket::copyAddrInfo(ULONG_PTR* dest, ULONG_PTR src, size_t srclen
    ((struct addrinfo*)*dest)->ai_addrlen = ((struct addrinfo*)src)->ai_addrlen;

    ((struct addrinfo*)*dest)->ai_family = ((struct addrinfo*)src)->ai_family;
    ((struct addrinfo*)*dest)->ai_protocol = ((struct addrinfo*)src)->ai_protocol;
	((struct addrinfo*)*dest)->ai_socktype = ((struct addrinfo*)src)->ai_socktype;
}

void netplus::socket::setTimeout(int sec) {
−1
Changes for src/windows/tcp.cpp: 0 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -324,7 +324,6 @@ void netplus::tcp::connect(std::shared_ptr<socket> &csock){
        exception[NetException::Error] << "Connect: getpeername failed on " << (int)_Socket << " error code : " << GetLastError();
        throw exception;
    }
	_Type = sockettype::TCP;
    _Wait = true;
}

−1
Changes for src/windows/udp.cpp: 0 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -323,7 +323,6 @@ void netplus::udp::connect(std::shared_ptr<socket> &csock) {
        throw exception;
    }

	_Type = sockettype::UDP;
    _Wait = true;
}