]> git.meshlink.io Git - meshlink/blobdiff - src/meshlink_internal.h
Instead of sending packets stuff them into a queue
[meshlink] / src / meshlink_internal.h
index 7976a55a7bb21a6be21c683b0e8b317df9dce895..39793a015827097431464d81670c7abcf205d7fa 100644 (file)
@@ -29,6 +29,8 @@
 #include "sockaddr.h"
 #include "sptps.h"
 
+#include <pthread.h>
+
 #define MAXSOCKETS 8    /* Probably overkill... */
 
 typedef struct listen_socket_t {
@@ -71,6 +73,8 @@ struct meshlink_handle {
        struct list_t *connections;
        struct list_t *outgoings;
 
+       struct list_t *outpacketqueue;
+
        int contradicting_add_edge;
        int contradicting_del_edge;
        int sleeptime;