"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "nsock/src/nsock_engines.c" between
nmap-7.90.tgz and nmap-7.91.tgz

About: Nmap ("Network Mapper") is a utility for network exploration or security auditing (port scanner).

nsock_engines.c  (nmap-7.90.tgz):nsock_engines.c  (nmap-7.91.tgz)
skipping to change at line 58 skipping to change at line 58
* contributions, just say so when you send them. * * contributions, just say so when you send them. *
* * * *
* This program is distributed in the hope that it will be useful, but * * This program is distributed in the hope that it will be useful, but *
* WITHOUT ANY WARRANTY; without even the implied warranty of * * WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
* General Public License v2.0 for more details * * General Public License v2.0 for more details *
* (http://www.gnu.org/licenses/gpl-2.0.html). * * (http://www.gnu.org/licenses/gpl-2.0.html). *
* * * *
***************************************************************************/ ***************************************************************************/
/* $Id: nsock_engines.c 38071 2020-10-02 05:02:05Z fyodor $ */ /* $Id: nsock_engines.c 38094 2020-10-09 22:10:17Z dmiller $ */
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H
#include "nsock_config.h" #include "nsock_config.h"
#endif #endif
#include "nsock_internal.h" #include "nsock_internal.h"
#if HAVE_IOCP #if HAVE_IOCP
extern struct io_engine engine_iocp; extern struct io_engine engine_iocp;
#define ENGINE_IOCP &engine_iocp, #define ENGINE_IOCP &engine_iocp,
skipping to change at line 103 skipping to change at line 103
/* select() based engine is the fallback engine, we assume it's always available */ /* select() based engine is the fallback engine, we assume it's always available */
extern struct io_engine engine_select; extern struct io_engine engine_select;
#define ENGINE_SELECT &engine_select, #define ENGINE_SELECT &engine_select,
/* Available IO engines. This depends on which IO management interfaces are /* Available IO engines. This depends on which IO management interfaces are
* available on your system. Engines must be sorted by order of preference */ * available on your system. Engines must be sorted by order of preference */
static struct io_engine *available_engines[] = { static struct io_engine *available_engines[] = {
ENGINE_EPOLL ENGINE_EPOLL
ENGINE_KQUEUE ENGINE_KQUEUE
ENGINE_IOCP
ENGINE_POLL ENGINE_POLL
ENGINE_IOCP
ENGINE_SELECT ENGINE_SELECT
NULL NULL
}; };
static char *engine_hint; static char *engine_hint;
int posix_iod_connect(struct npool *nsp, int sockfd, const struct sockaddr *addr , socklen_t addrlen) { int posix_iod_connect(struct npool *nsp, int sockfd, const struct sockaddr *addr , socklen_t addrlen) {
return connect(sockfd, addr, addrlen); return connect(sockfd, addr, addrlen);
} }
 End of changes. 3 change blocks. 
2 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)