|
Monero
|
#include <sys/types.h>#include <sys/select.h>#include <sys/socket.h>#include <sys/time.h>#include <sys/queue.h>#include <stdlib.h>#include <string.h>#include <unistd.h>#include <syslog.h>#include <errno.h>#include <sys/uio.h>#include <netinet/in.h>#include <inttypes.h>#include "asyncsendto.h"#include "upnputils.h"
Classes | |
| struct | scheduled_send |
Macros | |
| #define | FINALIZE_SENDTO_DELAY (500) |
Enumerations | |
| enum | send_state { ESCHEDULED =1 , EWAITREADY =2 , ESENDNOW =3 } |
Functions | |
| static | LIST_HEAD (listhead, scheduled_send) |
| static ssize_t | send_from_to (int sockfd, const void *buf, size_t len, int flags, const struct sockaddr_in6 *src_addr, const struct sockaddr *dest_addr, socklen_t addrlen) |
| ssize_t | sendto_schedule2 (int sockfd, const void *buf, size_t len, int flags, const struct sockaddr *dest_addr, socklen_t addrlen, const struct sockaddr_in6 *src_addr, unsigned int delay) |
| ssize_t | sendto_or_schedule (int sockfd, const void *buf, size_t len, int flags, const struct sockaddr *dest_addr, socklen_t addrlen) |
| ssize_t | sendto_or_schedule2 (int sockfd, const void *buf, size_t len, int flags, const struct sockaddr *dest_addr, socklen_t addrlen, const struct sockaddr_in6 *src_addr) |
| int | get_next_scheduled_send (struct timeval *next_send) |
| int | get_sendto_fds (fd_set *writefds, int *max_fd, const struct timeval *now) |
| int | try_sendto (fd_set *writefds) |
| void | finalize_sendto (void) |
Variables | |
| enum send_state | state |
| #define FINALIZE_SENDTO_DELAY (500) |
| enum send_state |
| void finalize_sendto | ( | void | ) |
| int get_next_scheduled_send | ( | struct timeval * | next_send | ) |
| int get_sendto_fds | ( | fd_set * | writefds, |
| int * | max_fd, | ||
| const struct timeval * | now ) |
|
static |
|
static |
| ssize_t sendto_or_schedule | ( | int | sockfd, |
| const void * | buf, | ||
| size_t | len, | ||
| int | flags, | ||
| const struct sockaddr * | dest_addr, | ||
| socklen_t | addrlen ) |
| ssize_t sendto_or_schedule2 | ( | int | sockfd, |
| const void * | buf, | ||
| size_t | len, | ||
| int | flags, | ||
| const struct sockaddr * | dest_addr, | ||
| socklen_t | addrlen, | ||
| const struct sockaddr_in6 * | src_addr ) |
| ssize_t sendto_schedule2 | ( | int | sockfd, |
| const void * | buf, | ||
| size_t | len, | ||
| int | flags, | ||
| const struct sockaddr * | dest_addr, | ||
| socklen_t | addrlen, | ||
| const struct sockaddr_in6 * | src_addr, | ||
| unsigned int | delay ) |
| int try_sendto | ( | fd_set * | writefds | ) |
| enum send_state state |