PROXY_SOCKS4A,
PROXY_SOCKS5,
PROXY_HTTP,
- PROXY_EXEC,
} proxytype_t;
/// A handle for an instance of MeshLink.
pthread_t thread;
bool threadstarted;
- pthread_mutex_t outpacketqueue_mutex;
pthread_mutex_t mesh_mutex;
event_loop_t loop;
listen_socket_t listen_socket[MAXSOCKETS];
hash_t *node_udp_cache;
struct connection_t *everyone;
struct ecdsa *invitation_key;
+ int invitation_timeout;
int pinginterval; /* seconds between pings */
int pingtimeout; /* seconds to wait for response */
struct CattaSServiceBrowser *catta_browser;
struct CattaSimplePoll *catta_poll;
struct CattaSEntryGroup *catta_group;
- char* catta_servicetype;
+ char *catta_servicetype;
};
/// A handle for a MeshLink node.
uint8_t source[16];
} __attribute__((__packed__)) meshlink_packethdr_t;
-extern void meshlink_send_from_queue(event_loop_t* el,meshlink_handle_t *mesh);
+extern void meshlink_send_from_queue(event_loop_t *el, meshlink_handle_t *mesh);
extern void update_node_status(meshlink_handle_t *mesh, struct node_t *n);
extern meshlink_log_level_t global_log_level;
extern meshlink_log_cb_t global_log_cb;
+extern int check_port(meshlink_handle_t *mesh);
/// Device class traits
typedef struct {