unet-cli: strip initial newline in usage message
[project/unetd.git] / pex-msg.h
index c777a6adf0021951079c73107aa0ec736a10e1a5..3ca1984063b37e190103295b5e9b35ba1c4cc179 100644 (file)
--- a/pex-msg.h
+++ b/pex-msg.h
@@ -24,6 +24,7 @@ enum pex_opcode {
        PEX_MSG_UPDATE_RESPONSE_DATA,
        PEX_MSG_UPDATE_RESPONSE_NO_DATA,
        PEX_MSG_ENDPOINT_NOTIFY,
+       PEX_MSG_ENDPOINT_PORT_NOTIFY,
 };
 
 #define PEX_ID_LEN             8
@@ -76,6 +77,10 @@ struct pex_update_response_no_data {
        uint64_t cur_version;
 };
 
+struct pex_endpoint_port_notify {
+       uint16_t port;
+};
+
 struct pex_msg_update_send_ctx {
        const uint8_t *pubkey;
        const uint8_t *auth_key;
@@ -103,6 +108,8 @@ int pex_open(void *addr, size_t addr_len, pex_recv_cb_t cb, bool server);
 int pex_unix_open(const char *path, pex_recv_control_cb_t cb);
 void pex_close(void);
 
+int pex_socket(void);
+int pex_raw_socket(int family);
 uint64_t pex_network_hash(const uint8_t *auth_key, uint64_t req_id);
 struct pex_hdr *__pex_msg_init(const uint8_t *pubkey, uint8_t opcode);
 struct pex_hdr *__pex_msg_init_ext(const uint8_t *pubkey, const uint8_t *auth_key,