diff options
author | irungentoo <irungentoo@gmail.com> | 2013-07-27 08:26:00 -0400 |
---|---|---|
committer | irungentoo <irungentoo@gmail.com> | 2013-07-27 08:26:00 -0400 |
commit | 1a6446266c9727e5c95e18d5e44157fd5a60900f (patch) | |
tree | 6dafbf52b7952f68a95ac9317871e923db6cc565 /core/Lossless_UDP.h | |
parent | 45b5ef0b79239167d9bc8fe52b25b36b684d2687 (diff) | |
parent | 241aca98bdc8106221ee7d7dbcea9f2fa17f24bc (diff) |
Merge branch 'master' of https://github.com/KostyaKow/ProjectTox-Core into KostyaKow-master
Conflicts:
core/DHT.c
Diffstat (limited to 'core/Lossless_UDP.h')
-rw-r--r-- | core/Lossless_UDP.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/Lossless_UDP.h b/core/Lossless_UDP.h index a9f1bb15..d27fea79 100644 --- a/core/Lossless_UDP.h +++ b/core/Lossless_UDP.h | |||
@@ -69,11 +69,11 @@ char id_packet(int connection_id); | |||
69 | 69 | ||
70 | /* return 0 if there is no received data in the buffer. | 70 | /* return 0 if there is no received data in the buffer. |
71 | return length of received packet if successful */ | 71 | return length of received packet if successful */ |
72 | int read_packet(int connection_id, uint8_t * data); | 72 | int read_packet(int connection_id, uint8_t *data); |
73 | 73 | ||
74 | /* return 0 if data could not be put in packet queue | 74 | /* return 0 if data could not be put in packet queue |
75 | return 1 if data was put into the queue */ | 75 | return 1 if data was put into the queue */ |
76 | int write_packet(int connection_id, uint8_t * data, uint32_t length); | 76 | int write_packet(int connection_id, uint8_t *data, uint32_t length); |
77 | 77 | ||
78 | /* returns the number of packets in the queue waiting to be successfully sent. */ | 78 | /* returns the number of packets in the queue waiting to be successfully sent. */ |
79 | uint32_t sendqueue(int connection_id); | 79 | uint32_t sendqueue(int connection_id); |
@@ -97,7 +97,7 @@ void doLossless_UDP(); | |||
97 | /* if we receive a Lossless_UDP packet we call this function so it can be handled. | 97 | /* if we receive a Lossless_UDP packet we call this function so it can be handled. |
98 | return 0 if packet is handled correctly. | 98 | return 0 if packet is handled correctly. |
99 | return 1 if it didn't handle the packet or if the packet was shit. */ | 99 | return 1 if it didn't handle the packet or if the packet was shit. */ |
100 | int LosslessUDP_handlepacket(uint8_t * packet, uint32_t length, IP_Port source); | 100 | int LosslessUDP_handlepacket(uint8_t *packet, uint32_t length, IP_Port source); |
101 | 101 | ||
102 | #ifdef __cplusplus | 102 | #ifdef __cplusplus |
103 | } | 103 | } |