17#include <freeradius-devel/io/base.h>
18#include <freeradius-devel/io/application.h>
19#include <freeradius-devel/server/time_tracking.h>
99 fr_app_t const *app,
void const *app_instance,
Public structure describing an I/O path for a protocol.
Describes a new application (protocol)
A section grouping multiple CONF_PAIR.
A full channel, which consists of two ends.
Entry in a doubly linked list.
Stores all information relating to an event list.
fr_rb_node_t virtual_server_node
Entry into the virtual server's tree of listeners.
int fr_io_listen_free(fr_listen_instance_t *li)
Free a socket's thread instance along with it.
fr_listen_t * fr_listen_alloc(TALLOC_CTX *ctx, CONF_SECTION *listen_cs, CONF_SECTION *server_cs, fr_app_t const *app, void const *app_instance, fr_app_io_t const *app_io, void const *app_io_instance)
Allocate a listener, and give it its id.
size_t num_messages
for the message ring buffer
request_t * request
back-pointer to the owning request so anything that pops this async off its dlist can reach the reque...
char const * name
printable name for this socket - set by open
fr_listen_t * listen
the listener this is a socket of.
bool needs_full_setup
Set to true to avoid the short cut when adding the listener.
fr_dict_t const * dict
dictionary for this listener
bool no_write_callback
sometimes we don't need to do writes
int fd
file descriptor for this socket - set by open
bool write_hexdump
Do we debug hexdump packets as they're written.
fr_rb_node_t id_node
Entry into the table of listeners by id.
fr_app_io_t const * app_io
I/O path functions.
bool track_duplicates
do we track duplicate packets?
fr_dlist_t entry
in the list of requests associated with this channel
void const * app_instance
void const * app_io_instance
I/O path configuration context.
CONF_SECTION * cs
of this listener
fr_time_tracking_t tracking
fr_socket_t * app_io_addr
for tracking duplicate sockets
void * thread_instance
thread / socket context
bool non_socket_listener
special internal listener that does not use sockets.
uint32_t id
Unique for the life of the process.
CONF_SECTION * server_cs
CONF_SECTION of the server.
fr_listen_instance_t * fr_listen_instance_alloc(TALLOC_CTX *ctx, fr_listen_t *listen)
Allocate a socket of a listener.
fr_listen_instance_t * inst
How we received this request,.
fr_listen_t * fr_listen_by_id(uint32_t id)
Find a listener by its id.
bool read_hexdump
Do we debug hexdump packets as they're read.
size_t default_message_size
copied from app_io, but may be changed
bool connected
is this for a connected socket?
Minimal data structure to use the new code.
static fr_app_io_t app_io
Holds information necessary for binding or connecting to a socket.