summaryrefslogtreecommitdiff
path: root/toxcore/DHT.h
diff options
context:
space:
mode:
Diffstat (limited to 'toxcore/DHT.h')
-rw-r--r--toxcore/DHT.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/toxcore/DHT.h b/toxcore/DHT.h
index e1e14cd9..35000c87 100644
--- a/toxcore/DHT.h
+++ b/toxcore/DHT.h
@@ -186,7 +186,7 @@ typedef struct {
186/*----------------------------------------------------------------------------------*/ 186/*----------------------------------------------------------------------------------*/
187 187
188typedef int (*cryptopacket_handler_callback)(void *object, IP_Port ip_port, const uint8_t *source_pubkey, 188typedef int (*cryptopacket_handler_callback)(void *object, IP_Port ip_port, const uint8_t *source_pubkey,
189 const uint8_t *data, uint32_t len); 189 const uint8_t *data, uint16_t len);
190 190
191typedef struct { 191typedef struct {
192 cryptopacket_handler_callback function; 192 cryptopacket_handler_callback function;
@@ -369,13 +369,13 @@ int DHT_connect_after_load(DHT *dht);
369 * 369 *
370 * return -1 if failure. 370 * return -1 if failure.
371 */ 371 */
372int route_packet(const DHT *dht, const uint8_t *client_id, const uint8_t *packet, uint32_t length); 372int route_packet(const DHT *dht, const uint8_t *client_id, const uint8_t *packet, uint16_t length);
373 373
374/* Send the following packet to everyone who tells us they are connected to friend_id. 374/* Send the following packet to everyone who tells us they are connected to friend_id.
375 * 375 *
376 * return number of nodes it sent the packet to. 376 * return number of nodes it sent the packet to.
377 */ 377 */
378int route_tofriend(const DHT *dht, const uint8_t *friend_id, const uint8_t *packet, uint32_t length); 378int route_tofriend(const DHT *dht, const uint8_t *friend_id, const uint8_t *packet, uint16_t length);
379 379
380/* Function to handle crypto packets. 380/* Function to handle crypto packets.
381 */ 381 */