diff options
Diffstat (limited to 'toxcore/network.h')
-rw-r--r-- | toxcore/network.h | 14 |
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. */ |
127 | uint64_t current_time(void); | 127 | uint64_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 | */ |
132 | uint32_t random_int(void); | 132 | uint32_t random_int(void); |
@@ -143,12 +143,12 @@ void networking_registerhandler(Networking_Core *net, uint8_t byte, packet_handl | |||
143 | void networking_poll(Networking_Core *net); | 143 | void 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 | */ |
153 | Networking_Core *new_networking(IP ip, uint16_t port); | 153 | Networking_Core *new_networking(IP ip, uint16_t port); |
154 | 154 | ||