Loading src/posix/tcp.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -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; } Loading src/posix/udp.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -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; Loading src/socket.h +1 −1 Original line number Diff line number Diff line Loading @@ -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); Loading @@ -138,7 +139,6 @@ namespace netplus { void getAddress(std::string &addr); private: udp(int sock); int _Maxconnections; std::string _UxPath; }; Loading src/windows/udp.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -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; Loading Loading
src/posix/tcp.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -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; } Loading
src/posix/udp.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -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; Loading
src/socket.h +1 −1 Original line number Diff line number Diff line Loading @@ -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); Loading @@ -138,7 +139,6 @@ namespace netplus { void getAddress(std::string &addr); private: udp(int sock); int _Maxconnections; std::string _UxPath; }; Loading
src/windows/udp.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -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; Loading