Loading src/posix/tcp.cpp +3 −0 Original line number Diff line number Diff line Loading @@ -151,6 +151,9 @@ int netplus::tcp::getMaxconnections(){ void netplus::tcp::accept(socket *csock){ NetException exception; ((struct addrinfo *)(csock->_SocketInfo))->ai_addr=(struct sockaddr*) malloc(((struct addrinfo *)(_SocketInfo))->ai_addrlen); ((struct addrinfo *)(csock->_SocketInfo))->ai_addrlen=((struct addrinfo *)(_SocketInfo))->ai_addrlen; *csock=::accept(_Socket,((struct addrinfo *)(csock->_SocketInfo))->ai_addr,&((struct addrinfo *)(csock->_SocketInfo))->ai_addrlen); if(csock->_Socket<0){ int etype=NetException::Error; Loading src/posix/udp.cpp +3 −0 Original line number Diff line number Diff line Loading @@ -151,6 +151,9 @@ int netplus::udp::getMaxconnections(){ void netplus::udp::accept(socket *csock){ NetException exception; ((struct addrinfo *)(csock->_SocketInfo))->ai_addr=(struct sockaddr*) malloc(((struct addrinfo *)(_SocketInfo))->ai_addrlen); ((struct addrinfo *)(csock->_SocketInfo))->ai_addrlen=((struct addrinfo *)(_SocketInfo))->ai_addrlen; *csock=::accept(_Socket,((struct addrinfo *)(csock->_SocketInfo))->ai_addr,&((struct addrinfo *)(csock->_SocketInfo))->ai_addrlen); if(csock->_Socket<0){ int etype=NetException::Error; Loading src/windows/tcp.cpp +3 −0 Original line number Diff line number Diff line Loading @@ -130,6 +130,9 @@ int netplus::tcp::getMaxconnections(){ void netplus::tcp::accept(socket *csock){ NetException exception; ((struct addrinfo *)(csock->_SocketInfo))->ai_addr=(struct sockaddr*) malloc(((struct addrinfo *)(_SocketInfo))->ai_addrlen); ((struct addrinfo *)(csock->_SocketInfo))->ai_addrlen=((struct addrinfo *)(_SocketInfo))->ai_addrlen; csock->_Socket=::WSAAccept(_Socket, ((struct addrinfo*)csock->_SocketInfo)->ai_addr, (LPINT)((struct addrinfo*)csock->_SocketInfo)->ai_addrlen, nullptr, 0); if(csock->_Socket==SOCKET_ERROR){ Loading src/windows/udp.cpp +4 −0 Original line number Diff line number Diff line Loading @@ -129,6 +129,10 @@ int netplus::udp::getMaxconnections() { void netplus::udp::accept(socket* csock) { NetException exception; ((struct addrinfo *)(csock->_SocketInfo))->ai_addr=(struct sockaddr*) malloc(((struct addrinfo *)(_SocketInfo))->ai_addrlen); ((struct addrinfo *)(csock->_SocketInfo))->ai_addrlen=((struct addrinfo *)(_SocketInfo))->ai_addrlen; csock->_Socket = ::WSAAccept(_Socket, ((struct addrinfo*)csock->_SocketInfo)->ai_addr, (LPINT)((struct addrinfo*)csock->_SocketInfo)->ai_addrlen, nullptr, 0); if (csock->_Socket == SOCKET_ERROR) { Loading Loading
src/posix/tcp.cpp +3 −0 Original line number Diff line number Diff line Loading @@ -151,6 +151,9 @@ int netplus::tcp::getMaxconnections(){ void netplus::tcp::accept(socket *csock){ NetException exception; ((struct addrinfo *)(csock->_SocketInfo))->ai_addr=(struct sockaddr*) malloc(((struct addrinfo *)(_SocketInfo))->ai_addrlen); ((struct addrinfo *)(csock->_SocketInfo))->ai_addrlen=((struct addrinfo *)(_SocketInfo))->ai_addrlen; *csock=::accept(_Socket,((struct addrinfo *)(csock->_SocketInfo))->ai_addr,&((struct addrinfo *)(csock->_SocketInfo))->ai_addrlen); if(csock->_Socket<0){ int etype=NetException::Error; Loading
src/posix/udp.cpp +3 −0 Original line number Diff line number Diff line Loading @@ -151,6 +151,9 @@ int netplus::udp::getMaxconnections(){ void netplus::udp::accept(socket *csock){ NetException exception; ((struct addrinfo *)(csock->_SocketInfo))->ai_addr=(struct sockaddr*) malloc(((struct addrinfo *)(_SocketInfo))->ai_addrlen); ((struct addrinfo *)(csock->_SocketInfo))->ai_addrlen=((struct addrinfo *)(_SocketInfo))->ai_addrlen; *csock=::accept(_Socket,((struct addrinfo *)(csock->_SocketInfo))->ai_addr,&((struct addrinfo *)(csock->_SocketInfo))->ai_addrlen); if(csock->_Socket<0){ int etype=NetException::Error; Loading
src/windows/tcp.cpp +3 −0 Original line number Diff line number Diff line Loading @@ -130,6 +130,9 @@ int netplus::tcp::getMaxconnections(){ void netplus::tcp::accept(socket *csock){ NetException exception; ((struct addrinfo *)(csock->_SocketInfo))->ai_addr=(struct sockaddr*) malloc(((struct addrinfo *)(_SocketInfo))->ai_addrlen); ((struct addrinfo *)(csock->_SocketInfo))->ai_addrlen=((struct addrinfo *)(_SocketInfo))->ai_addrlen; csock->_Socket=::WSAAccept(_Socket, ((struct addrinfo*)csock->_SocketInfo)->ai_addr, (LPINT)((struct addrinfo*)csock->_SocketInfo)->ai_addrlen, nullptr, 0); if(csock->_Socket==SOCKET_ERROR){ Loading
src/windows/udp.cpp +4 −0 Original line number Diff line number Diff line Loading @@ -129,6 +129,10 @@ int netplus::udp::getMaxconnections() { void netplus::udp::accept(socket* csock) { NetException exception; ((struct addrinfo *)(csock->_SocketInfo))->ai_addr=(struct sockaddr*) malloc(((struct addrinfo *)(_SocketInfo))->ai_addrlen); ((struct addrinfo *)(csock->_SocketInfo))->ai_addrlen=((struct addrinfo *)(_SocketInfo))->ai_addrlen; csock->_Socket = ::WSAAccept(_Socket, ((struct addrinfo*)csock->_SocketInfo)->ai_addr, (LPINT)((struct addrinfo*)csock->_SocketInfo)->ai_addrlen, nullptr, 0); if (csock->_Socket == SOCKET_ERROR) { Loading