28 #ifndef HOMEPORT_TCPD_INTERN_H
29 #define HOMEPORT_TCPD_INTERN_H
35 #include <netinet/in.h>
59 char ip[INET6_ADDRSTRLEN];
74 #endif //HOMEPORT_TCPD_INTERN_H
int timeout
Restart timeout watcher ?
ev_io send_watcher
Send watcher.
TAILQ_HEAD(hpd_tcpd_conns, hpd_tcpd_conn)
ev_timer timeout_watcher
Timeout watcher.
char * send_msg
Data to send.
hpd_tcpd_t * tcpd
Webserver instance.
int send_close
Close socket after send ?
int sockfd
Socket file descriptor.
char ip[INET6_ADDRSTRLEN]
IP address of client.
hpd_tcpd_settings_t settings
Settings.
TAILQ_ENTRY(hpd_tcpd_conn) HPD_TAILQ_FIELD
const hpd_module_t * context
hpd_ev_loop_t * loop
Event loop.
hpd_tcpd_conns_t conns
Linked List of connections.
All data to represent a connection.
size_t send_len
Length of data to send.
void * ctx
Connection context.
struct hpd_tcpd_conns hpd_tcpd_conns_t
struct ev_loop hpd_ev_loop_t
char port_str[6]
Port number - as a string.
ev_io watcher
New connection watcher.
Settings struct for tcpd.
ev_io recv_watcher
Recieve watcher.