summaryrefslogtreecommitdiff
path: root/src/sock.c (unfollow)
AgeCommit message (Expand)AuthorFilesLines
2013-11-09sock: log each result of getaddrinfo() in listen_sock()Michael Adam1-0/+14
2013-11-09sock: in listen_sock(), add a log message for when bind() has failedMichael Adam1-0/+2
2013-11-09sock: in listen_sock(), detect and log failure to call setsockopt()Michael Adam1-2/+10
2013-11-09sock: in listen_sock(), add debug message when socket() call failed.Michael Adam1-1/+5
2013-11-09sock: move listen() into the getaddrinfo result loop in listen_sock()Michael Adam1-22/+22
2013-11-09child: use a list of listen_fds instead of one single listenfd.Michael Adam1-2/+5
2013-11-09sock: add addr argument to listen_sock()Michael Adam1-2/+2
2013-11-09sock/child: remove global variable addrlen.Michael Adam1-8/+3
2010-03-09Revert "Revert "Pass address family when binding to outgoing socket""Mukund Sivaraman1-4/+7
2010-03-03Use AI_PASSIVE flag to make tinyproxy listen on wildcard interfaceMukund Sivaraman1-0/+1
2010-01-21Revert "Pass address family when binding to outgoing socket"Mukund Sivaraman1-7/+4
2010-01-10Pass address family when binding to outgoing socketMukund Sivaraman1-4/+7
2009-12-08Fix restarting of tinyproxy: call setsockopt with REUSEADDR _before_ calling ...Michael Adam1-3/+4
2009-12-07Move definition of "struct config_s" from main.h to conf.hMichael Adam1-0/+1
2009-11-17Use snprintf() with size of the portstr bufMukund Sivaraman1-2/+2
2009-11-09Close listenfd upon errorsMukund Sivaraman1-0/+3
2009-11-09Add IPV6 support to listen_sock()Mukund Sivaraman1-14/+34
2009-09-15Indent code to Tinyproxy coding styleMukund Sivaraman1-170/+150
2009-08-07Rename tinyproxy.[ch] to main.[ch]Mukund Sivaraman1-1/+1
2008-12-08Convert tabs to spacesMukund Sivaraman1-25/+25
2008-12-01Reformat code to GNU coding styleMukund Sivaraman1-153/+167
2008-05-24Updated copyright, license notices in source codeMukund Sivaraman1-16/+20
2008-03-13Corrected datatype of salen to fix compiler warningMukund Sivaraman1-2/+2
2005-08-15* [Indent] Ran Source Through indentRobert James Kaes1-150/+152
2005-07-12* Specified Correct typedef in getsock_ip()Robert James Kaes1-2/+2
2004-04-27Added the "BindSame" configure directive from Oswald Buddenhagen.Robert James Kaes1-10/+38
2004-02-18Converted the various socket functions to work with both IPv4 and IPv6Robert James Kaes1-86/+84
2002-10-03#Style formatting change.Robert James Kaes1-2/+2
2002-05-31(getpeer_information): Fixed a problem retrieving the FQDN of a host because ...Robert James Kaes1-3/+4
2002-05-27(opensock): Changed a comment around to better state what the code is actuall...Robert James Kaes1-2/+2
2002-05-26Removed the DNS API calls and replaced them with the standardRobert James Kaes1-24/+15
2002-05-24Fixed some spelling mistakes, and removed the getpeer_ip() andRobert James Kaes1-67/+1
2002-05-23Changed the lookup_domain() function to use the new "dnsserver" API.Robert James Kaes1-255/+67
2002-04-24bind_address has been moved inside the config structure. Fixed up aRobert James Kaes1-5/+6
2002-04-22The "Bind" directive sets a binding address which the outgoing connectionsRobert James Kaes1-4/+4
2002-04-18Whoops. The previous include only had the code conditionally removed.Robert James Kaes1-9/+1
2002-04-18Removed the call to inet_aton() since the gethostbyname() function handlesRobert James Kaes1-1/+3
2002-04-18Removed the call to hstrerror() in the getpeer_string() function. It'sRobert James Kaes1-3/+2
2002-04-17Removed the LOOKUP_LOCK() and LOOKUP_UNLOCK() macros since I believe IRobert James Kaes1-12/+4
2002-04-16Tightened the lookup_domain() function.Robert James Kaes1-3/+2
2002-04-15Added a test to make sure the "whole_buffer" could be allocated.Robert James Kaes1-3/+5
2002-04-13Added additional error handling for the bind() and listen() system callsRobert James Kaes1-3/+11
2002-04-13Modified the opensock() function to respect the Listen directive. If it'sRobert James Kaes1-1/+17
2001-12-24Added the write_message() function (from reqs.c)Robert James Kaes1-1/+53
2001-12-19Changed the calls to write() to send() so that we can use send(...,Robert James Kaes1-2/+2
2001-12-17Added the assert() calls to safe_write() to make sure the arguments areRobert James Kaes1-1/+5
2001-12-15Changed safe_write() to fully send all the data in the buffer it wasRobert James Kaes1-8/+24
2001-12-15Added the host name lookup code (which use to be in the DNS cachingRobert James Kaes1-3/+46
2001-11-25Add support to limit the maximum size of the input line (to 128KB whichRobert James Kaes1-1/+11
2001-11-23Style changes. Also replaces all mallocs with safemalloc, etc.Robert James Kaes1-12/+8