24 RCSIDH(udp_h,
"$Id: 866314ba56fa1c8bab48541d070ecf2f434d3ca4 $")
30 #include <freeradius-devel/build.h>
31 #include <freeradius-devel/missing.h>
32 #include <freeradius-devel/util/inet.h>
33 #include <freeradius-devel/util/socket.h>
34 #include <freeradius-devel/util/time.h>
35 #include <freeradius-devel/util/udpfromto.h>
37 #define UDP_FLAGS_NONE (0)
38 #define UDP_FLAGS_CONNECTED (1 << 0)
39 #define UDP_FLAGS_PEEK (1 << 1)
int udp_recv_discard(int sockfd)
Discard the next UDP packet.
ssize_t udp_recv_peek(int sockfd, void *data, size_t data_len, int flags, fr_ipaddr_t *src_ipaddr, uint16_t *src_port)
Peek at the header of a UDP packet.
ssize_t udp_recv(int sockfd, int flags, fr_socket_t *socket_out, void *data, size_t data_len, fr_time_t *when)
Read a UDP packet.
int udp_send(fr_socket_t const *socket, int flags, void *data, size_t data_len)
Send a packet via a UDP socket.
Holds information necessary for binding or connecting to a socket.