X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Fnet.h;h=d66a1c7add4f7427e1285bd6cd5ae94e61dd316a;hb=38c25d62c2bc76908bd95fb21c8f5e39ad269884;hp=d63c0522172071fb36b2fc4b95f1db8a60c59785;hpb=834290b00f859412ee48bef454a07083cb727130;p=tinc diff --git a/src/net.h b/src/net.h index d63c0522..d66a1c7a 100644 --- a/src/net.h +++ b/src/net.h @@ -24,6 +24,7 @@ #define __TINC_NET_H__ #include +#include #include "ipv6.h" @@ -99,6 +100,8 @@ typedef struct packet_queue_t { } packet_queue_t; typedef struct listen_socket_t { + struct event ev_tcp; + struct event ev_udp; int tcp; int udp; sockaddr_t sa; @@ -133,10 +136,10 @@ extern EVP_CIPHER_CTX packet_ctx; #include "node.h" extern void retry_outgoing(outgoing_t *); -extern void handle_incoming_vpn_data(int); +extern void handle_incoming_vpn_data(int, short, void *); extern void finish_connecting(struct connection_t *); extern void do_outgoing_connection(struct connection_t *); -extern bool handle_new_meta_connection(int); +extern void handle_new_meta_connection(int, short, void *); extern int setup_listen_socket(const sockaddr_t *); extern int setup_vpn_in_socket(const sockaddr_t *); extern void send_packet(const struct node_t *, vpn_packet_t *); @@ -151,6 +154,8 @@ extern void terminate_connection(struct connection_t *, bool); extern void flush_queue(struct node_t *); extern bool read_rsa_public_key(struct connection_t *); extern void send_mtu_probe(struct node_t *); +extern void handle_device_data(int, short, void *); +extern void handle_meta_connection_data(int, short, void *); #ifndef HAVE_MINGW #define closesocket(s) close(s)