OpenDNSSEC-signer  2.1.9
Macros | Functions
sock.c File Reference
#include "config.h"
#include "daemon/engine.h"
#include "log.h"
#include "signer/zone.h"
#include "wire/axfr.h"
#include "wire/netio.h"
#include "wire/sock.h"
#include "wire/xfrd.h"
#include <errno.h>
#include <fcntl.h>
#include <ldns/ldns.h>
#include <unistd.h>

Go to the source code of this file.

Macros

#define SOCK_TCP_BACKLOG   5
 

Functions

ods_status sock_listen (socklist_type *sockets, listener_type *listener)
 
void sock_handle_udp (netio_type *ATTR_UNUSED(netio), netio_handler_type *handler, netio_events_type event_types)
 
void sock_handle_tcp_accept (netio_type *netio, netio_handler_type *handler, netio_events_type event_types)
 
void sock_handle_tcp_read (netio_type *netio, netio_handler_type *handler, netio_events_type event_types)
 
void sock_handle_tcp_write (netio_type *netio, netio_handler_type *handler, netio_events_type event_types)
 

Macro Definition Documentation

◆ SOCK_TCP_BACKLOG

#define SOCK_TCP_BACKLOG   5

Sockets.

Definition at line 46 of file sock.c.

Function Documentation

◆ sock_handle_tcp_accept()

void sock_handle_tcp_accept ( netio_type netio,
netio_handler_type handler,
netio_events_type  event_types 
)

Handle incoming tcp connections.

Definition at line 445 of file sock.c.

References NETIO_EVENT_READ, and netio_handler_struct::user_data.

◆ sock_handle_tcp_read()

void sock_handle_tcp_read ( netio_type netio,
netio_handler_type handler,
netio_events_type  event_types 
)

Handle incoming tcp queries.

Definition at line 519 of file sock.c.

References NETIO_EVENT_TIMEOUT, tcp_data::qstate, QUERY_PROCESSED, and netio_handler_struct::user_data.

◆ sock_handle_tcp_write()

void sock_handle_tcp_write ( netio_type netio,
netio_handler_type handler,
netio_events_type  event_types 
)

Handle outgoing tcp responses.

Definition at line 644 of file sock.c.

References NETIO_EVENT_TIMEOUT, tcp_data::query, and netio_handler_struct::user_data.

◆ sock_handle_udp()

void sock_handle_udp ( netio_type ATTR_UNUSEDnetio,
netio_handler_type handler,
netio_events_type  event_types 
)

Handle incoming udp queries.

Definition at line 388 of file sock.c.

References NETIO_EVENT_READ, udp_data::query, QUERY_PROCESSED, and netio_handler_struct::user_data.

◆ sock_listen()

ods_status sock_listen ( socklist_type sockets,
listener_type listener 
)