1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-06-27 14:56:46 +02:00

Add setting to control DHT nodeslist update frequency

Also rename a few things and semi-fix man page format issues
This commit is contained in:
Jfreegman
2016-09-20 13:13:12 -04:00
parent 4f6c603543
commit 151f5f0c51
11 changed files with 77 additions and 49 deletions

View File

@ -74,9 +74,9 @@ int set_curl_proxy(CURL *c_handle, const char *proxy_address, uint16_t port, uin
* Returns number of bytes received from http request on success (don't change this).
* Returns 0 if data exceeds buffer size.
*/
size_t write_lookup_data(void *data, size_t size, size_t nmemb, void *user_pointer)
size_t curl_cb_write_data(void *data, size_t size, size_t nmemb, void *user_pointer)
{
struct Recv_Data *recv_data = (struct Recv_Data *) user_pointer;
struct Recv_Curl_Data *recv_data = (struct Recv_Curl_Data *) user_pointer;
size_t length = size * nmemb;
size_t total_size = length + recv_data->length;