Commit 79e05f23 authored by jan.koester's avatar jan.koester
Browse files

ops

parent d5af10a9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -50,7 +50,7 @@

#define HIDDEN __attribute__ ((visibility ("hidden")))

#define ADDRMAXSIZE 256
#define ADDRMAXSIZE 512

std::atomic<int> netplus::socket::_InitCount(0);

+1 −1
Original line number Diff line number Diff line
@@ -105,7 +105,7 @@ netplus::tcp::tcp(const char* addr, int port,int maxconnections,int sockopts) :
            continue;
        memcpy((void*)_SocketInfo,rp,sizeof(hints));
        ((struct addrinfo*)_SocketInfo)->ai_next=nullptr;
        _SocketInfoLen=sizeof(rp);
        _SocketInfoLen= sizeof(hints);

        break;
    }
+2 −2
Original line number Diff line number Diff line
@@ -81,8 +81,8 @@ netplus::tcp::tcp(const char* addr, int port,int maxconnections,int sockopts) :
                           rp->ai_protocol,nullptr, 0, WSA_FLAG_OVERLAPPED);
        if (_Socket == -1)
            continue;
        memcpy(&_SocketInfo,rp,sizeof(*rp));
        _SocketInfoLen = sizeof(rp);
        memcpy(&_SocketInfo,rp,sizeof(hints));
        _SocketInfoLen = sizeof(hints);

        break;
    }