]> git.meshlink.io Git - meshlink/blobdiff - src/node.h
Allow the mesh to detect when a node has completely restarted.
[meshlink] / src / node.h
index e42aac4a4d894f02d4a840408c029aceda1d8349..50ee141c6cba88b42e74b1f0fe400ff2e6fe1972 100644 (file)
@@ -50,8 +50,9 @@ typedef struct node_t {
        dev_class_t devclass;
 
        // Used for packet I/O
-       sptps_t sptps;
        int sock;                               /* Socket to use for outgoing UDP packets */
+       uint32_t session_id;                    /* Unique ID for this node's currently running process */
+       sptps_t sptps;
        sockaddr_t address;                     /* his real (internet) ip to send UDP packets to */
 
        struct utcp *utcp;