ReactOS 0.4.16-dev-297-gc569aee
|
#define LWIP_COMPAT_SOCKETS 1 |
LWIP_COMPAT_SOCKETS==1: Enable BSD-style sockets functions names through defines. LWIP_COMPAT_SOCKETS==2: Same as ==1 but correctly named functions are created. While this helps code completion, it might conflict with existing libraries. (only used if you use sockets.c)
#define LWIP_FIONREAD_LINUXMODE 0 |
LWIP_FIONREAD_LINUXMODE==0 (default): ioctl/FIONREAD returns the amount of pending data in the network buffer. This is the way windows does it. It's the default for lwIP since it is smaller. LWIP_FIONREAD_LINUXMODE==1: ioctl/FIONREAD returns the size of the next pending datagram in bytes. This is the way linux does it. This code is only here for compatibility.
#define LWIP_POSIX_SOCKETS_IO_NAMES 1 |
#define LWIP_SO_LINGER 0 |
#define LWIP_SO_RCVBUF 0 |
#define LWIP_SO_RCVTIMEO 0 |
#define LWIP_SO_SNDRCVTIMEO_NONSTANDARD 0 |
#define LWIP_SO_SNDTIMEO 0 |
#define LWIP_SOCKET 1 |
#define LWIP_SOCKET_EXTERNAL_HEADERS 0 |
LWIP_SOCKET_EXTERNAL_HEADERS==1: Use external headers instead of sockets.h and inet.h. In this case, user must provide its own headers by setting the values for LWIP_SOCKET_EXTERNAL_HEADER_SOCKETS_H and LWIP_SOCKET_EXTERNAL_HEADER_INET_H to appropriate include file names and the whole content of the default sockets.h and inet.h is skipped.
#define LWIP_SOCKET_OFFSET 0 |
LWIP_SOCKET_OFFSET==n: Increases the file descriptor number created by LwIP with n. This can be useful when there are multiple APIs which create file descriptors. When they all start with a different offset and you won't make them overlap you can re implement read/write/close/ioctl/fnctl to send the requested action to the right library (sharing select will need more work though).
#define LWIP_SOCKET_POLL 1 |
#define LWIP_SOCKET_SELECT 1 |
#define LWIP_TCP_CLOSE_TIMEOUT_MS_DEFAULT 20000 |
#define LWIP_TCP_KEEPALIVE 0 |