Loading src/windows/tcp.cpp +2 −7 Changes for src/windows/tcp.cpp: 2 added lines, 7 removed lines. Original line number Diff line number Diff line Loading @@ -50,7 +50,6 @@ netplus::tcp::tcp(const std::string &uxsocket,int maxconnections,int sockopts) : netplus::tcp::tcp(const std::string &addr, int port,int maxconnections,int sockopts) : socket() { NetException exception; _Type = sockettype::TCP; _Maxconnections=maxconnections; if (sockopts == -1) Loading Loading @@ -84,16 +83,12 @@ netplus::tcp::tcp(const std::string &addr, int port,int maxconnections,int socko continue; break; } if(_Socket==-1){ exception[NetException::Critical] << "Create Socket " << (int)_Socket << " failed : " << GetLastError(); throw exception; } _SocketInfoLen = sizeof(hints); copyAddrInfo(&_SocketInfo, (ULONG_PTR)rp,sizeof(hints)); ::freeaddrinfo(result); _Type=sockettype::TCP; } netplus::tcp::~tcp(){ Loading src/windows/udp.cpp +2 −1 Changes for src/windows/udp.cpp: 2 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -49,7 +49,6 @@ netplus::udp::udp(const std::string &uxsocket, int maxconnections, int sockopts) netplus::udp::udp(const std::string &addr, int port, int maxconnections, int sockopts) : socket() { NetException exception; _Type = sockettype::UDP; _Maxconnections = maxconnections; if (sockopts == -1) Loading Loading @@ -87,6 +86,8 @@ netplus::udp::udp(const std::string &addr, int port, int maxconnections, int soc } ::freeaddrinfo(result); _Type = sockettype::UDP; } netplus::udp::~udp() { Loading src/socket.h +5 −5 File changed.Contains only whitespace changes. Show changes Loading
src/windows/tcp.cpp +2 −7 Changes for src/windows/tcp.cpp: 2 added lines, 7 removed lines. Original line number Diff line number Diff line Loading @@ -50,7 +50,6 @@ netplus::tcp::tcp(const std::string &uxsocket,int maxconnections,int sockopts) : netplus::tcp::tcp(const std::string &addr, int port,int maxconnections,int sockopts) : socket() { NetException exception; _Type = sockettype::TCP; _Maxconnections=maxconnections; if (sockopts == -1) Loading Loading @@ -84,16 +83,12 @@ netplus::tcp::tcp(const std::string &addr, int port,int maxconnections,int socko continue; break; } if(_Socket==-1){ exception[NetException::Critical] << "Create Socket " << (int)_Socket << " failed : " << GetLastError(); throw exception; } _SocketInfoLen = sizeof(hints); copyAddrInfo(&_SocketInfo, (ULONG_PTR)rp,sizeof(hints)); ::freeaddrinfo(result); _Type=sockettype::TCP; } netplus::tcp::~tcp(){ Loading
src/windows/udp.cpp +2 −1 Changes for src/windows/udp.cpp: 2 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -49,7 +49,6 @@ netplus::udp::udp(const std::string &uxsocket, int maxconnections, int sockopts) netplus::udp::udp(const std::string &addr, int port, int maxconnections, int sockopts) : socket() { NetException exception; _Type = sockettype::UDP; _Maxconnections = maxconnections; if (sockopts == -1) Loading Loading @@ -87,6 +86,8 @@ netplus::udp::udp(const std::string &addr, int port, int maxconnections, int soc } ::freeaddrinfo(result); _Type = sockettype::UDP; } netplus::udp::~udp() { Loading