summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--toxcore/network.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/toxcore/network.h b/toxcore/network.h
index 09f0df18..0eb7bbd0 100644
--- a/toxcore/network.h
+++ b/toxcore/network.h
@@ -237,9 +237,13 @@ void ip_copy(IP *target, IP *source);
237void ipport_copy(IP_Port *target, IP_Port *source); 237void ipport_copy(IP_Port *target, IP_Port *source);
238 238
239 239
240/* packs IP into data, writes SIZE_IP bytes to data */
240void ip_pack(uint8_t *data, IP *source); 241void ip_pack(uint8_t *data, IP *source);
242/* unpacks IP from data, reads SIZE_IP bytes from data */
241void ip_unpack(IP *target, uint8_t *data); 243void ip_unpack(IP *target, uint8_t *data);
244/* packs IP_Port into data, writes SIZE_IPPORT bytes to data */
242void ipport_pack(uint8_t *data, IP_Port *source); 245void ipport_pack(uint8_t *data, IP_Port *source);
246/* unpacks IP_Port from data, reads SIZE_IPPORT bytes to data */
243void ipport_unpack(IP_Port *target, uint8_t *data); 247void ipport_unpack(IP_Port *target, uint8_t *data);
244 248
245/* 249/*