summaryrefslogtreecommitdiff
path: root/src/sock.h (follow)
AgeCommit message (Collapse)AuthorFilesLines
2008-12-01Reformat code to GNU coding styleMukund Sivaraman1-6/+6
This is a commit which simply ran all C source code files through GNU indent. No other modifications were made.
2008-05-24Updated copyright, license notices in source codeMukund Sivaraman1-13/+16
The notices have been changed to a more GNU look. Documentation comments have been separated from the copyright header. I've tried to keep all copyright notices intact. Some author contact details have been updated.
2005-08-15* [Indent] Ran Source Through indentRobert James Kaes1-5/+5
I re-indented the source code using indent with the following options: indent -kr -bad -bap -nut -i8 -l80 -psl -sob -ss -ncs There are now _no_ tabs in the source files, and all indentation is eight spaces. Lines are 80 characters long, and the procedure type is on it's own line. Read the indent manual for more information about what each option means.
2004-04-27Added the "BindSame" configure directive from Oswald Buddenhagen.Robert James Kaes1-4/+5
This allows tinyproxy to respond to a request bound to the same interface that the request came in on. As Oswald explains: "attached is a patch that adds the BindSame option. it causes binding an outgoing connection to the ip address of the respective incoming connection. that way one can simulate an entire proxy farm with a single instance of tinyproxy on a multi-homed machine." Cool.
2004-02-18Converted the various socket functions to work with both IPv4 and IPv6Robert James Kaes1-5/+6
addresses.
2003-01-27# Style clean up.Robert James Kaes1-2/+2
2002-05-23Changed the lookup_domain() function to use the new "dnsserver" API.Robert James Kaes1-11/+2
Also moved safe_write(), safe_read(), readline(), and write_message() functions into their own file.
2001-12-24Added the write_message() function (from reqs.c)Robert James Kaes1-1/+2
2001-12-15Changed safe_write() to fully send all the data in the buffer it wasRobert James Kaes1-3/+3
passed. Also safe_write() and safe_read() now use char pointer buffers rather than the void pointer style.
2001-11-22Replaced the readline() function with a new version which has noRobert James Kaes1-3/+3
restrictions on the length of a line (unless you fill memory of course.) Reformated the source.
2001-10-25Changed the included headers to be only the "tinyproxy.h" since itRobert James Kaes1-4/+2
contains all the code for properly bringing in the system headers (in the correct order and with proper dependancies.)
2001-09-16Moved the safe_write() and safe_read() functions here.Robert James Kaes1-1/+4
2001-06-02Fixed up the names of the DEFINES.Robert James Kaes1-3/+7
2001-05-27Removed the SA define.Robert James Kaes1-4/+4
Made the sock_mutex static since it's not referenced outside the file. Changed the data types for some of the variables. Cleaned up the readline function (changed data types and removed variables.)
2000-09-11Needed locking in getpeer_string().Robert James Kaes1-12/+10
Added mutex locking around the dnscache() call. Removed the global sockaddr and setup_fd variables. Added the socket_blocking() and socket_nonblocking() functions. Gutted the readling() function and replaced it with something similar to the 1.0 version. :)
2000-02-16This commit was generated by cvs2svn to compensate for changes in r2,Steven Young1-0/+40
which included commits to RCS files with non-trunk default branches.