OpenDNSSEC-signer  1.4.9
Functions
tcpset.c File Reference
#include "config.h"
#include "wire/tcpset.h"
#include <string.h>
Include dependency graph for tcpset.c:

Go to the source code of this file.

Functions

tcp_conn_typetcp_conn_create (allocator_type *allocator)
 
tcp_set_typetcp_set_create (allocator_type *allocator)
 
void tcp_conn_ready (tcp_conn_type *tcp)
 
int tcp_conn_read (tcp_conn_type *tcp)
 
int tcp_conn_write (tcp_conn_type *tcp)
 
void tcp_set_cleanup (tcp_set_type *set, allocator_type *allocator)
 

Function Documentation

tcp_conn_type* tcp_conn_create ( allocator_type allocator)
int tcp_conn_read ( tcp_conn_type tcp)
void tcp_conn_ready ( tcp_conn_type tcp)

Make tcp connection ready for reading.

Parameters
[in]tcptcp connection

Definition at line 96 of file tcpset.c.

References buffer_clear(), tcp_conn_struct::msglen, ods_log_assert, tcp_conn_struct::packet, and tcp_conn_struct::total_bytes.

Referenced by xfrd_acl_sockaddr_to().

int tcp_conn_write ( tcp_conn_type tcp)
void tcp_set_cleanup ( tcp_set_type set,
allocator_type allocator 
)

Clean up set of tcp connections.

Definition at line 251 of file tcpset.c.

References allocator_deallocate(), and TCPSET_MAX.

Referenced by xfrhandler_cleanup().

tcp_set_type* tcp_set_create ( allocator_type allocator)