X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=src%2Fnet.h;fp=src%2Fnet.h;h=04bd55a50a0a5ff42fc50d2f314738f32d6b58a6;hb=5c7be85686db219955e1af592b32d0d4108625cb;hp=0ff313d0bdafd1d7f120082e46413629aad62ab0;hpb=13ef38b7a24efc84122b4d2bfc86cddbc359b94f;p=meshlink diff --git a/src/net.h b/src/net.h index 0ff313d0..04bd55a5 100644 --- a/src/net.h +++ b/src/net.h @@ -60,12 +60,19 @@ typedef enum packet_type_t { typedef struct outgoing_t { char *name; - int timeout; struct splay_tree_t *config_tree; + int timeout; + enum { + OUTGOING_START, + OUTGOING_CANONICAL, + OUTGOING_RECENT, + OUTGOING_KNOWN, + OUTGOING_END, + OUTGOING_NO_KNOWN_ADDRESSES, + } state; struct config_t *cfg; - struct addrinfo *ai; // addresses from config files + struct addrinfo *ai; struct addrinfo *aip; - struct addrinfo *nai; // addresses known via other online nodes (use free_known_addresses()) timeout_t ev; struct meshlink_handle *mesh; } outgoing_t;