add protocol for exchanging signed network data
[project/unetd.git] / pex.h
diff --git a/pex.h b/pex.h
index aaf828f3caf35ebf9d6af0bae107c5790e8e117c..11f783fc398d6846401a430829efbf8aa07b1570 100644 (file)
--- a/pex.h
+++ b/pex.h
@@ -9,8 +9,15 @@
 
 struct network;
 
+struct network_pex_host {
+       struct list_head list;
+       union network_endpoint endpoint;
+};
+
 struct network_pex {
        struct uloop_fd fd;
+       struct list_head hosts;
+       struct uloop_timeout request_update_timer;
 };
 
 enum pex_event {
@@ -32,4 +39,6 @@ static inline bool network_pex_active(struct network_pex *pex)
        return pex->fd.fd >= 0;
 }
 
+int global_pex_open(void);
+
 #endif