diff options
author | irungentoo <irungentoo@gmail.com> | 2014-09-09 20:39:35 -0400 |
---|---|---|
committer | irungentoo <irungentoo@gmail.com> | 2014-09-09 20:39:35 -0400 |
commit | d69a6843e70bc5c75c343ca54388ced3c1b91662 (patch) | |
tree | 18f7566c886ae81f23b14a7449234d6aede24ba4 /toxcore/net_crypto.c | |
parent | a0302b7acaef47805f93718630e501acdd3a3d00 (diff) | |
parent | 2bb2bc4163a13253d51b7d11e4abbe62b07da526 (diff) |
Merge branch 'cgar-spelling'
Diffstat (limited to 'toxcore/net_crypto.c')
-rw-r--r-- | toxcore/net_crypto.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/toxcore/net_crypto.c b/toxcore/net_crypto.c index 13b6625c..172e439b 100644 --- a/toxcore/net_crypto.c +++ b/toxcore/net_crypto.c | |||
@@ -657,7 +657,7 @@ static int generate_request_packet(uint8_t *data, uint16_t length, const Packets | |||
657 | } | 657 | } |
658 | 658 | ||
659 | /* Handle a request data packet. | 659 | /* Handle a request data packet. |
660 | * Remove all the packets the other recieved from the array. | 660 | * Remove all the packets the other received from the array. |
661 | * | 661 | * |
662 | * return -1 on failure. | 662 | * return -1 on failure. |
663 | * return number of requested packets on success. | 663 | * return number of requested packets on success. |
@@ -1084,7 +1084,7 @@ static int send_kill_packet(Net_Crypto *c, int crypt_connection_id) | |||
1084 | &kill_packet, sizeof(kill_packet)); | 1084 | &kill_packet, sizeof(kill_packet)); |
1085 | } | 1085 | } |
1086 | 1086 | ||
1087 | /* Handle a recieved data packet. | 1087 | /* Handle a received data packet. |
1088 | * | 1088 | * |
1089 | * return -1 on failure. | 1089 | * return -1 on failure. |
1090 | * return 0 on success. | 1090 | * return 0 on success. |
@@ -1181,7 +1181,7 @@ static int handle_data_packet_helper(const Net_Crypto *c, int crypt_connection_i | |||
1181 | return 0; | 1181 | return 0; |
1182 | } | 1182 | } |
1183 | 1183 | ||
1184 | /* Handle a packet that was recieved for the connection. | 1184 | /* Handle a packet that was received for the connection. |
1185 | * | 1185 | * |
1186 | * return -1 on failure. | 1186 | * return -1 on failure. |
1187 | * return 0 on success. | 1187 | * return 0 on success. |
@@ -1387,7 +1387,7 @@ static int getcryptconnection_id_dht_pubkey(const Net_Crypto *c, const uint8_t * | |||
1387 | } | 1387 | } |
1388 | 1388 | ||
1389 | /* Add a source to the crypto connection. | 1389 | /* Add a source to the crypto connection. |
1390 | * This is to be used only when we have recieved a packet from that source. | 1390 | * This is to be used only when we have received a packet from that source. |
1391 | * | 1391 | * |
1392 | * return -1 on failure. | 1392 | * return -1 on failure. |
1393 | * return positive number on success. | 1393 | * return positive number on success. |
@@ -1990,7 +1990,7 @@ int send_tcp_onion_request(Net_Crypto *c, const uint8_t *data, uint16_t length) | |||
1990 | return -1; | 1990 | return -1; |
1991 | } | 1991 | } |
1992 | 1992 | ||
1993 | /* Set the function to be called when an onion response packet is recieved by one of the TCP connections. | 1993 | /* Set the function to be called when an onion response packet is received by one of the TCP connections. |
1994 | */ | 1994 | */ |
1995 | void tcp_onion_response_handler(Net_Crypto *c, int (*tcp_onion_callback)(void *object, const uint8_t *data, | 1995 | void tcp_onion_response_handler(Net_Crypto *c, int (*tcp_onion_callback)(void *object, const uint8_t *data, |
1996 | uint16_t length), void *object) | 1996 | uint16_t length), void *object) |
@@ -2290,7 +2290,7 @@ static int udp_handle_packet(void *object, IP_Port source, const uint8_t *packet | |||
2290 | return 0; | 2290 | return 0; |
2291 | } | 2291 | } |
2292 | 2292 | ||
2293 | /* The dT for the average packet recieving rate calculations. | 2293 | /* The dT for the average packet receiving rate calculations. |
2294 | Also used as the */ | 2294 | Also used as the */ |
2295 | #define PACKET_COUNTER_AVERAGE_INTERVAL 100 | 2295 | #define PACKET_COUNTER_AVERAGE_INTERVAL 100 |
2296 | 2296 | ||