Commit 05596668 authored by jan.koester's avatar jan.koester
Browse files

Revert "fixed"

This reverts commit f3f55a29.
parent f3f55a29
Loading
Loading
Loading
Loading
+2 −7
Changes for src/windows/tcp.cpp: 2 added lines, 7 removed lines.
Original line number Diff line number Diff line
@@ -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)
@@ -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(){
+2 −1
Changes for src/windows/udp.cpp: 2 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -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)
@@ -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() {
+5 −5

File changed.

Contains only whitespace changes.