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

fixes

parent 0e7e65d8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -131,7 +131,7 @@ netplus::tcp::tcp() : socket() {
    _SocketPtr=::malloc(sizeof(sockaddr));
    _SocketPtrSize=sizeof(sockaddr);
    ((struct sockaddr*)_SocketPtr)->sa_family=AF_UNSPEC;
    _Socket=::socket(((struct sockaddr*)_SocketPtr)->sa_family,SOCK_STREAM,0);;
    _Socket=::socket(((struct sockaddr*)_SocketPtr)->sa_family,SOCK_STREAM,0);
    _Type=sockettype::TCP;
}

+1 −1
Original line number Diff line number Diff line
@@ -132,7 +132,7 @@ netplus::udp::~udp(){
    ::free(_SocketPtr);
}

netplus::udp::udp(int sock) : socket() {
netplus::udp::udp(SOCKET sock) : socket() {
    _SocketPtr=::malloc(sizeof(sockaddr));
    _SocketPtrSize=sizeof(sockaddr);
    ((struct sockaddr*)_SocketPtr)->sa_family=AF_UNSPEC;
+1 −1
Original line number Diff line number Diff line
@@ -113,6 +113,7 @@ namespace netplus {
        class udp : public socket{
        public:
            udp();
            udp(SOCKET sock);
            udp(const udp &cudp) = delete;
            udp(const char *uxsocket,int maxconnections,
                int sockopts);
@@ -138,7 +139,6 @@ namespace netplus {
            void getAddress(std::string &addr);

        private:
            udp(int sock);
            int             _Maxconnections;
            std::string     _UxPath;
        };
+1 −1
Original line number Diff line number Diff line
@@ -104,7 +104,7 @@ netplus::udp::~udp(){
    ::free(_SocketPtr);
}

netplus::udp::udp(int sock) : socket() {
netplus::udp::udp(SOCKET sock) : socket() {
    _SocketPtr=::malloc(sizeof(addrinfo));
    _SocketPtrSize=sizeof(addrinfo);
    ((struct addrinfo*)_SocketPtr)->ai_family=AF_UNSPEC;