diff options
Diffstat (limited to 'toxcore/Lossless_UDP.h')
-rw-r--r-- | toxcore/Lossless_UDP.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/toxcore/Lossless_UDP.h b/toxcore/Lossless_UDP.h index d2f1986f..d4d6ec4e 100644 --- a/toxcore/Lossless_UDP.h +++ b/toxcore/Lossless_UDP.h | |||
@@ -38,10 +38,10 @@ | |||
38 | /* Maximum number of data packets in the buffer. */ | 38 | /* Maximum number of data packets in the buffer. */ |
39 | #define MAX_REQUESTED_PACKETS 256 | 39 | #define MAX_REQUESTED_PACKETS 256 |
40 | 40 | ||
41 | /* Timeout per connection is randomly set between CONNEXION_TIMEOUT and 2*CONNEXION_TIMEOUT. */ | 41 | /* Timeout per connection is randomly set between CONNECTION_TIMEOUT and 2*CONNECTION_TIMEOUT. */ |
42 | #define CONNEXION_TIMEOUT 5 | 42 | #define CONNECTION_TIMEOUT 5 |
43 | 43 | ||
44 | /* Initial amount of sync/hanshake packets to send per second. */ | 44 | /* Initial amount of sync/handshake packets to send per second. */ |
45 | #define SYNC_RATE 2 | 45 | #define SYNC_RATE 2 |
46 | 46 | ||
47 | /* Initial send rate of data. */ | 47 | /* Initial send rate of data. */ |
@@ -124,7 +124,7 @@ typedef struct { | |||
124 | uint8_t send_counter; | 124 | uint8_t send_counter; |
125 | uint8_t timeout; /* connection timeout in seconds. */ | 125 | uint8_t timeout; /* connection timeout in seconds. */ |
126 | 126 | ||
127 | /* is the connection confirmed or not 1 if yes, 0 if no */ | 127 | /* Is the connection confirmed or not? 1 if yes, 0 if no */ |
128 | uint8_t confirmed; | 128 | uint8_t confirmed; |
129 | } Connection; | 129 | } Connection; |
130 | 130 | ||
@@ -249,7 +249,7 @@ uint32_t recvqueue(Lossless_UDP *ludp, int connection_id); | |||
249 | */ | 249 | */ |
250 | int is_connected(Lossless_UDP *ludp, int connection_id); | 250 | int is_connected(Lossless_UDP *ludp, int connection_id); |
251 | 251 | ||
252 | /* Call this function a couple times per second It's the main loop. */ | 252 | /* Call this function a couple times per second. It is the main loop. */ |
253 | void do_lossless_udp(Lossless_UDP *ludp); | 253 | void do_lossless_udp(Lossless_UDP *ludp); |
254 | 254 | ||
255 | /* This function sets up LosslessUDP packet handling. */ | 255 | /* This function sets up LosslessUDP packet handling. */ |