summaryrefslogtreecommitdiff
path: root/toxcore/network.h
diff options
context:
space:
mode:
authorJamoBox <petewicken@gmail.com>2013-09-02 17:25:28 +0100
committerJamoBox <petewicken@gmail.com>2013-09-02 17:25:28 +0100
commit61880ab9380f3a71ae1f51df7b6f4836059c041f (patch)
treee8e1912b43e03282283a8b4ccd420799226a5e88 /toxcore/network.h
parent7b944e9c656f5bc9e0165db666db0a89963247c8 (diff)
last of the comment refactoring from toxcore
Diffstat (limited to 'toxcore/network.h')
-rw-r--r--toxcore/network.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/toxcore/network.h b/toxcore/network.h
index 32850944..eb725d25 100644
--- a/toxcore/network.h
+++ b/toxcore/network.h
@@ -123,10 +123,10 @@ typedef struct {
123 int sock; 123 int sock;
124} Networking_Core; 124} Networking_Core;
125 125
126/* return current time in milleseconds since the epoch. */ 126/* return current time in milleseconds since the epoch. */
127uint64_t current_time(void); 127uint64_t current_time(void);
128 128
129/* return a random number. 129/* return a random number.
130 * NOTE: this function should probably not be used where cryptographic randomness is absolutely necessary. 130 * NOTE: this function should probably not be used where cryptographic randomness is absolutely necessary.
131 */ 131 */
132uint32_t random_int(void); 132uint32_t random_int(void);
@@ -143,12 +143,12 @@ void networking_registerhandler(Networking_Core *net, uint8_t byte, packet_handl
143void networking_poll(Networking_Core *net); 143void networking_poll(Networking_Core *net);
144 144
145/* Initialize networking. 145/* Initialize networking.
146 * bind to ip and port. 146 * bind to ip and port.
147 * ip must be in network order EX: 127.0.0.1 = (7F000001). 147 * ip must be in network order EX: 127.0.0.1 = (7F000001).
148 * port is in host byte order (this means don't worry about it). 148 * port is in host byte order (this means don't worry about it).
149 * 149 *
150 * returns 0 if no problems. 150 * return 0 if no problems.
151 * returns -1 if there were problems. 151 * return -1 if there were problems.
152 */ 152 */
153Networking_Core *new_networking(IP ip, uint16_t port); 153Networking_Core *new_networking(IP ip, uint16_t port);
154 154