aboutsummaryrefslogtreecommitdiffstats
path: root/pacredir.c
AgeCommit message (Collapse)AuthorFilesLines
2016-10-12calculate date/time string only when neededGravatar Christian Hesse1-5/+6
2016-10-12make more output depend on verbose (do not print by default)Gravatar Christian Hesse1-19/+37
2016-10-12always pass real port to add_host(), print to verbose outputGravatar Christian Hesse1-5/+8
2016-10-12print only if verboseGravatar Christian Hesse1-7/+10
2016-10-11differentiate between offline and badGravatar Christian Hesse1-1/+6
2016-10-11Be more verbose about badtime, simplify conditionGravatar Christian Hesse1-8/+12
2016-10-11add line breakGravatar Christian Hesse1-1/+2
2016-10-11throttle requestsGravatar Christian Hesse1-0/+4
2016-10-11add comment about ctime stuffGravatar Christian Hesse1-3/+6
2016-10-11print message to stdout, not stderrGravatar Christian Hesse1-1/+1
2016-10-11format conditionGravatar Christian Hesse1-2/+6
no functional change...
2016-10-11initialize struct timeval just onceGravatar Christian Hesse1-2/+3
2016-10-10remove extra line breakGravatar Christian Hesse1-1/+0
2016-10-10show the more generic information if errbuf is emptyGravatar Christian Hesse1-2/+3
2016-10-10verbose output: returned -> receivedGravatar Christian Hesse1-1/+1
2016-10-10set to error buffer emptyGravatar Christian Hesse1-0/+1
2016-10-10add printing curl error messagesGravatar Christian Hesse1-1/+5
2016-10-10verbose output: do not print useless messageGravatar Christian Hesse1-1/+1
There is no HTTP status code 0, so this is what we set earlier.
2016-10-10verbose output: error -> http status codeGravatar Christian Hesse1-1/+1
2016-10-06fix race condition with SIGHUPGravatar Christian Hesse1-2/+7
2016-01-30add more specific comment about db filesGravatar Christian Hesse1-1/+1
2016-01-30correctly handle *.files and redirect to pacdbserveGravatar Christian Hesse1-1/+2
2016-01-27darkhttpd supports IPv6 now, no longer limit to IPv4Gravatar Christian Hesse1-2/+2
2016-01-04update copyright for 2016Gravatar Christian Hesse1-1/+1
2015-12-12use MHD_create_response_from_buffer()Gravatar Christian Hesse1-2/+2
MHD_create_response_from_data() is deprecated, so use MHD_create_response_from_buffer() instead.
2015-12-12allow to limit the number of query threadsGravatar Christian Hesse1-1/+13
2015-07-03add --version optionGravatar Christian Hesse1-4/+18
2015-06-24fix string handlingGravatar Christian Hesse1-3/+10
iniparser_getstring() returns const char*, but strtok() modifies its first argument. So strdup() and free().
2015-01-04update copyright for 2015Gravatar Christian Hesse1-1/+1
2014-10-21use ISO C11 standard and move includes to header fileGravatar Christian Hesse1-30/+0
2014-10-06pacman should not ask for db signature filesGravatar Christian Hesse1-3/+2
2014-10-06fix guess the fastest server for db filesGravatar Christian Hesse1-2/+5
New db files were not fetched from upstream servers if one server had a file with same timestamp.
2014-10-05try to guess the fastest server for db files as wellGravatar Christian Hesse1-1/+2
2014-09-04reformat long functions0.1.10Gravatar Christian Hesse1-5/+20
2014-08-29do not use DEBUG macro but command line argument to be verboseGravatar Christian Hesse1-29/+45
2014-07-28have port in struct services, allow to specify host:port in pacredir.confGravatar Christian Hesse1-14/+27
2014-06-16clean whitespaceGravatar Christian Hesse1-1/+1
2014-06-16add debug output for file not foundGravatar Christian Hesse1-0/+4
2014-06-16be a bit less verboseGravatar Christian Hesse1-0/+2
2014-06-16print modification datprint modification dateGravatar Christian Hesse1-1/+5
2014-04-22use write_log() instead of printf()Gravatar Christian Hesse1-1/+1
2014-04-22fix filename in html pagesGravatar Christian Hesse1-2/+2
2014-04-22redirect to project website if no file is givenGravatar Christian Hesse1-0/+9
2014-04-22darkhttpd only serves IPv4, so limit curl to thatGravatar Christian Hesse1-1/+3
2014-01-20make output a bit more verboseGravatar Christian Hesse1-1/+6
2014-01-13try to guess the fastest server for packagesGravatar Christian Hesse1-2/+14
2014-01-03move arch specific macros to separate header fileGravatar Christian Hesse1-0/+1
2014-01-02write version to header fileGravatar Christian Hesse1-0/+1
2014-01-02update copyright yearGravatar Christian Hesse1-1/+1
2013-11-28clean up trailing white spacesGravatar Christian Hesse1-10/+10
2013-11-15rename services.bad to something more descriptiveGravatar Christian Hesse1-10/+10
2013-11-15reset badcount on SIGHUPGravatar Christian Hesse1-0/+2
2013-11-14count bad requests and increase ignore time after requestGravatar Christian Hesse1-7/+14
2013-11-14do a request as soon as host is up to check bad statusGravatar Christian Hesse1-4/+29
2013-11-14introduce pacredir.hGravatar Christian Hesse1-42/+2
2013-11-12print number of failed serversGravatar Christian Hesse1-1/+1
2013-11-07make pacredir multi-threaded, do all curl requests at onceGravatar Christian Hesse1-85/+130
2013-11-07add architecture to user agent stringGravatar Christian Hesse1-1/+1
2013-11-06clean up included headersGravatar Christian Hesse1-5/+3
2013-11-06give long to curl_easy_setopt()Gravatar Christian Hesse1-3/+3
2013-11-05do not handle client to browse_callbackGravatar Christian Hesse1-2/+2
2013-11-05fix memory corruptionGravatar Christian Hesse1-1/+1
2013-11-05handle SIGINT and print variable textGravatar Christian Hesse1-4/+5
2013-11-05make pacredir work without config fileGravatar Christian Hesse1-43/+43
2013-11-05typo in commentGravatar Christian Hesse1-1/+1
2013-11-05handle db file signatures correctlyGravatar Christian Hesse1-2/+3
2013-11-05coding style cleanupGravatar Christian Hesse1-7/+4
2013-11-04add configuration file for pacredirGravatar Christian Hesse1-3/+94
This allows to ignore hosts on specified interfaces and add static hosts.
2013-11-04introduce add_host() and remove_host()Gravatar Christian Hesse1-41/+57
2013-10-30compile date and time into the binaryGravatar Christian Hesse1-1/+1
2013-10-30use unsigned int for recentGravatar Christian Hesse1-2/+2
2013-10-30use long for http_code and last_modifiedGravatar Christian Hesse1-3/+3
2013-10-30reset bad status for hosts on SIGHUPGravatar Christian Hesse1-3/+3
2013-10-30use function to print outputGravatar Christian Hesse1-22/+33
2013-10-30justify output streamsGravatar Christian Hesse1-3/+3
2013-10-30make pacredir listen on localhost onlyGravatar Christian Hesse1-1/+9
2013-10-29decide about local service via flagsGravatar Christian Hesse1-8/+1
2013-10-28remove some unused codeGravatar Christian Hesse1-10/+0
2013-10-28remove avahi resolver code, all we need is the browserGravatar Christian Hesse1-114/+69
2013-10-28rename functionGravatar Christian Hesse1-3/+3
2013-10-28remove comment about exampleGravatar Christian Hesse1-2/+0
2013-10-28move configuration to config.hGravatar Christian Hesse1-18/+1
2013-10-28initialize variables in structGravatar Christian Hesse1-0/+6
2013-10-27handle online start for service, not for hostGravatar Christian Hesse1-10/+16
2013-10-27make pacdbserve aware of architectureGravatar Christian Hesse1-1/+9
2013-10-27handle db filesGravatar Christian Hesse1-47/+120
2013-10-27ignore self and prepare for pacdbserveGravatar Christian Hesse1-8/+42
2013-10-27do not check for pacman db filesGravatar Christian Hesse1-17/+27
2013-10-26set curl connection timeout to 2 secondsGravatar Christian Hesse1-0/+3
2013-10-26add handling for offline hosts and bad requestsGravatar Christian Hesse1-36/+117
2013-10-26use port reported by avahi, not anything hardcodedGravatar Christian Hesse1-1/+1
2013-10-25initial commitGravatar Christian Hesse1-0/+316