summaryrefslogtreecommitdiffhomepage
path: root/src/sock.c
AgeCommit message (Collapse)Author
2001-12-15Changed safe_write() to fully send all the data in the buffer it wasRobert James Kaes
passed. Also safe_write() and safe_read() now use char pointer buffers rather than the void pointer style.
2001-12-15Added the host name lookup code (which use to be in the DNS cachingRobert James Kaes
system.)
2001-11-25Add support to limit the maximum size of the input line (to 128KB whichRobert James Kaes
should be _more_ than enough for any header line. :)
2001-11-23Style changes. Also replaces all mallocs with safemalloc, etc.Robert James Kaes
2001-11-22Replaced the readline() function with a new version which has noRobert James Kaes
restrictions on the length of a line (unless you fill memory of course.) Reformated the source.
2001-11-12Changed the read() call into a recv() call with a flag of NOSIGNAL since IRobert James Kaes
don't want signals messing up my calling conventions.
2001-10-25Bit of source code clean up.Robert James Kaes
2001-10-24Error message cleanup to make the information more informative.Robert James Kaes
2001-10-23Fixed a spelling problem in a log message.Robert James Kaes
2001-10-23Moved the zero-length string setting to outside the tests in getpeer_*()Robert James Kaes
functions. Also added a more robust error reporting for DNS errors.
2001-10-22Changed the getpeer_*() functions to return the reason why the name or IPRobert James Kaes
address could not be looked up.
2001-10-22Fixed a problem where a user's variable would be uninitialized if a DNSRobert James Kaes
lookup failed.
2001-09-16Moved the safe_write() and safe_read() functions here.Robert James Kaes
2001-09-07Error message cleanup.Robert James Kaes
2001-08-29Cleaned up the locking code to make it more fine grained. Did this sinceRobert James Kaes
dncache.c has locking itself now.
2001-05-27Removed the SA define.Robert James Kaes
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.)
2001-05-23Added ASSERT statements.Robert James Kaes
2000-09-11Needed locking in getpeer_string().Robert James Kaes
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-03-31Completely rewrote the readline function.Robert James Kaes
2000-02-16This commit was generated by cvs2svn to compensate for changes in r2,Steven Young
which included commits to RCS files with non-trunk default branches.