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.h23
1 files changed, 21 insertions, 2 deletions
diff --git a/core/Lossless_UDP.h b/core/Lossless_UDP.h
index f8021f5a..8f5503ea 100644
--- a/core/Lossless_UDP.h
+++ b/core/Lossless_UDP.h
@@ -2,7 +2,26 @@
2* 2*
3* An implementation of the Lossless_UDP protocol as seen in docs/Lossless_UDP.txt 3* An implementation of the Lossless_UDP protocol as seen in docs/Lossless_UDP.txt
4* 4*
5
6 Copyright (C) 2013 Tox project All Rights Reserved.
7
8 This file is part of Tox.
9
10 Tox is free software: you can redistribute it and/or modify
11 it under the terms of the GNU General Public License as published by
12 the Free Software Foundation, either version 3 of the License, or
13 (at your option) any later version.
14
15 Tox is distributed in the hope that it will be useful,
16 but WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 GNU General Public License for more details.
19
20 You should have received a copy of the GNU General Public License
21 along with Tox. If not, see <http://www.gnu.org/licenses/>.
22
5*/ 23*/
24
6#ifndef LOSSLESS_UDP_H 25#ifndef LOSSLESS_UDP_H
7#define LOSSLESS_UDP_H 26#define LOSSLESS_UDP_H
8 27
@@ -33,10 +52,10 @@ int read_packet(int connection_id, char * data);
33int write_packet(int connection_id, char * data, uint32_t length); 52int write_packet(int connection_id, char * data, uint32_t length);
34 53
35//returns the number of packets in the queue waiting to be successfully sent. 54//returns the number of packets in the queue waiting to be successfully sent.
36int sendqueue(int connection_id); 55uint32_t sendqueue(int connection_id);
37 56
38//returns the number of packets in the queue waiting to be successfully read with read_packet(...) 57//returns the number of packets in the queue waiting to be successfully read with read_packet(...)
39int recvqueue(int connection_id); 58uint32_t recvqueue(int connection_id);
40 59
41//check if connection is connected 60//check if connection is connected
42//return 0 no. 61//return 0 no.