|
GNU libmicrohttpd
0.9.72
|

Go to the source code of this file.
Functions | |
| int | MHD_add_to_fd_set_ (MHD_socket fd, fd_set *set, MHD_socket *max_fd, unsigned int fd_setsize) |
| int | MHD_socket_nonblocking_ (MHD_socket sock) |
| int | MHD_socket_noninheritable_ (MHD_socket sock) |
| MHD_socket | MHD_socket_create_listen_ (int pf) |
| int MHD_add_to_fd_set_ | ( | MHD_socket | fd, |
| fd_set * | set, | ||
| MHD_socket * | max_fd, | ||
| unsigned int | fd_setsize | ||
| ) |
Add fd to the set. If fd is greater than max_fd, set max_fd to fd.
| fd | file descriptor to add to the set |
| set | set to modify |
| max_fd | maximum value to potentially update |
| fd_setsize | value of FD_SETSIZE |
Definition at line 377 of file mhd_sockets.c.
References fd, MHD_INVALID_SOCKET, MHD_SCKT_ADD_FD_TO_FDSET_SETSIZE_, MHD_SCKT_FD_FITS_FDSET_SETSIZE_, and NULL.
Referenced by thread_main_handle_connection().

| MHD_socket MHD_socket_create_listen_ | ( | int | pf | ) |
Create a listen socket, with noninheritable flag if possible.
| pf | protocol family to use |
Definition at line 474 of file mhd_sockets.c.
References fd, MHD_INVALID_SOCKET, MHD_socket_close_, MHD_socket_fset_error_, MHD_socket_get_error_, MHD_socket_noninheritable_(), and NULL.
Referenced by MHD_start_daemon_va().


| int MHD_socket_nonblocking_ | ( | MHD_socket | sock | ) |
Change socket options to be non-blocking.
| sock | socket to manipulate |
Definition at line 407 of file mhd_sockets.c.
Referenced by MHD_start_daemon_va().

| int MHD_socket_noninheritable_ | ( | MHD_socket | sock | ) |
Change socket options to be non-inheritable.
| sock | socket to manipulate |
Definition at line 442 of file mhd_sockets.c.
Referenced by MHD_socket_create_listen_().
