unbound 0.1
tap_socket Struct Reference

tap socket More...

Data Fields

int fd
 fd of socket
struct ub_event * ev
 the event for it
int ev_added
 has the event been added
void(*) ev_cb (int, short, void *)
 the callback, for the event, ev_cb(fd, bits, arg)
void * data
 data element, (arg for the tap_socket struct)
char * socketpath
 socketpath, if this is an AF_LOCAL socket
char * ip
 IP, if this is a TCP socket.
SSL_CTX * sslctx
 for a TLS socket, the tls context
struct tap_data_list * data_list
 dumb way to deal with memory leaks: tap_data was only freed on errors and not during exit leading to false positives when testing for memory leaks.

Detailed Description

tap socket

Field Documentation

◆ fd

◆ ev

struct ub_event* tap_socket::ev

the event for it

Referenced by tap_socket_delete(), tap_socket_delev(), and tap_socket_setup().

◆ ev_added

int tap_socket::ev_added

has the event been added

Referenced by tap_socket_delev(), and tap_socket_setup().

◆ ev_cb

void(*) tap_socket::ev_cb(int, short, void *)

◆ data

void* tap_socket::data

◆ socketpath

char* tap_socket::socketpath

socketpath, if this is an AF_LOCAL socket

Referenced by tap_socket_delete(), tap_socket_new_local(), and tap_socket_setup().

◆ ip

char* tap_socket::ip

◆ sslctx

SSL_CTX* tap_socket::sslctx

for a TLS socket, the tls context

Referenced by dtio_mainfdcallback(), tap_socket_delete(), tap_socket_new_tlsaccept(), and tap_socket_setup().

◆ data_list

struct tap_data_list* tap_socket::data_list

dumb way to deal with memory leaks: tap_data was only freed on errors and not during exit leading to false positives when testing for memory leaks.

Referenced by dtio_mainfdcallback(), and tap_socket_delete().


The documentation for this struct was generated from the following file: