Loading src/windows/socket.cpp +2 Changes for src/windows/socket.cpp: 2 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -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) { Loading src/windows/tcp.cpp −1 Changes for src/windows/tcp.cpp: 0 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -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; } Loading src/windows/udp.cpp −1 Changes for src/windows/udp.cpp: 0 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -323,7 +323,6 @@ void netplus::udp::connect(std::shared_ptr<socket> &csock) { throw exception; } _Type = sockettype::UDP; _Wait = true; } Loading Loading
src/windows/socket.cpp +2 Changes for src/windows/socket.cpp: 2 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -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) { Loading
src/windows/tcp.cpp −1 Changes for src/windows/tcp.cpp: 0 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -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; } Loading
src/windows/udp.cpp −1 Changes for src/windows/udp.cpp: 0 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -323,7 +323,6 @@ void netplus::udp::connect(std::shared_ptr<socket> &csock) { throw exception; } _Type = sockettype::UDP; _Wait = true; } Loading