summaryrefslogtreecommitdiff
path: root/core/Lossless_UDP.h
diff options
context:
space:
mode:
Diffstat (limited to 'core/Lossless_UDP.h')
-rw-r--r--core/Lossless_UDP.h9
1 files changed, 0 insertions, 9 deletions
diff --git a/core/Lossless_UDP.h b/core/Lossless_UDP.h
index 4b156301..a9f1bb15 100644
--- a/core/Lossless_UDP.h
+++ b/core/Lossless_UDP.h
@@ -33,8 +33,6 @@ extern "C" {
33/* maximum length of the data in the data packets */ 33/* maximum length of the data in the data packets */
34#define MAX_DATA_SIZE 1024 34#define MAX_DATA_SIZE 1024
35 35
36
37
38/* Functions */ 36/* Functions */
39 37
40/* initialize a new connection to ip_port 38/* initialize a new connection to ip_port
@@ -52,7 +50,6 @@ int getconnection_id(IP_Port ip_port);
52 return -1 if there are no new incoming connections in the list. */ 50 return -1 if there are no new incoming connections in the list. */
53int incoming_connection(); 51int incoming_connection();
54 52
55
56/* return -1 if it could not kill the connection. 53/* return -1 if it could not kill the connection.
57 return 0 if killed successfully */ 54 return 0 if killed successfully */
58int kill_connection(int connection_id); 55int kill_connection(int connection_id);
@@ -74,21 +71,16 @@ char id_packet(int connection_id);
74 return length of received packet if successful */ 71 return length of received packet if successful */
75int read_packet(int connection_id, uint8_t * data); 72int read_packet(int connection_id, uint8_t * data);
76 73
77
78/* return 0 if data could not be put in packet queue 74/* return 0 if data could not be put in packet queue
79 return 1 if data was put into the queue */ 75 return 1 if data was put into the queue */
80int write_packet(int connection_id, uint8_t * data, uint32_t length); 76int write_packet(int connection_id, uint8_t * data, uint32_t length);
81 77
82
83
84/* 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. */
85uint32_t sendqueue(int connection_id); 79uint32_t sendqueue(int connection_id);
86 80
87
88/* returns the number of packets in the queue waiting to be successfully read with read_packet(...) */ 81/* returns the number of packets in the queue waiting to be successfully read with read_packet(...) */
89uint32_t recvqueue(int connection_id); 82uint32_t recvqueue(int connection_id);
90 83
91
92/* check if connection is connected 84/* check if connection is connected
93 return 0 no. 85 return 0 no.
94 return 1 if attempting handshake 86 return 1 if attempting handshake
@@ -97,7 +89,6 @@ uint32_t recvqueue(int connection_id);
97 return 4 if timed out and wating to be killed */ 89 return 4 if timed out and wating to be killed */
98int is_connected(int connection_id); 90int is_connected(int connection_id);
99 91
100
101/* Call this function a couple times per second 92/* Call this function a couple times per second
102 It's the main loop. */ 93 It's the main loop. */
103void doLossless_UDP(); 94void doLossless_UDP();