accept
¶POSIX specification:
https://pubs.opengroup.org/onlinepubs/9799919799/functions/accept.html
Portability problems fixed by Gnulib:
<winsock2.h>
instead of <sys/socket.h>
on some platforms:
mingw, MSVC 14.
accept
function cannot be used in calls to read
,
write
, and close
; you have to use recv
, send
,
closesocket
in these cases instead.
errno
, and WSAGetLastError
must be used
instead.
_HPUX_ALT_XOPEN_SOCKET_API
is not defined, this function behaves incorrectly because it is declared
to take a pointer to a 64-bit wide socklen_t
entity but in fact
considers it as a pointer to a 32-bit wide unsigned int
entity.
Portability problems not fixed by Gnulib:
socklen_t
type; in this case this function’s
third argument type is ‘int *’.