diff options
-rw-r--r-- | toxcore/network.h | 4 |
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); | |||
237 | void ipport_copy(IP_Port *target, IP_Port *source); | 237 | void ipport_copy(IP_Port *target, IP_Port *source); |
238 | 238 | ||
239 | 239 | ||
240 | /* packs IP into data, writes SIZE_IP bytes to data */ | ||
240 | void ip_pack(uint8_t *data, IP *source); | 241 | void ip_pack(uint8_t *data, IP *source); |
242 | /* unpacks IP from data, reads SIZE_IP bytes from data */ | ||
241 | void ip_unpack(IP *target, uint8_t *data); | 243 | void ip_unpack(IP *target, uint8_t *data); |
244 | /* packs IP_Port into data, writes SIZE_IPPORT bytes to data */ | ||
242 | void ipport_pack(uint8_t *data, IP_Port *source); | 245 | void ipport_pack(uint8_t *data, IP_Port *source); |
246 | /* unpacks IP_Port from data, reads SIZE_IPPORT bytes to data */ | ||
243 | void ipport_unpack(IP_Port *target, uint8_t *data); | 247 | void ipport_unpack(IP_Port *target, uint8_t *data); |
244 | 248 | ||
245 | /* | 249 | /* |