summaryrefslogtreecommitdiff
path: root/src/network.c (follow)
AgeCommit message (Collapse)AuthorFilesLines
2004-02-18Added two functions:Robert James Kaes1-2/+80
- get_ip_string() converts a binary network address into either a dotted-decimal IPv4 address, or a IPv6 hex-string - full_inet_pton() converts a numeric character string into an IPv6 network address (binary form). It's like the system inet_pton() function, but it will work with bot IPv4 and IPv6 character strings. These functions are required for the conversion to Internet protocol independence. (Or to put it more clearly: allow tinyproxy to work in an IPv6 network.)
2004-02-13Removed unnecessary casts (mostly dealing with memory allocation.) IRobert James Kaes1-10/+8
should never have added them in the first place. They don't really buy anything, and they can hide bugs.
2003-07-31Added appropriate casts from (void*) so that the code will compileRobert James Kaes1-8/+10
cleanly with a C++ compiler. (Tested using GCC 3.3)
2002-05-23Initial addition to CVS. Moved the network related functions into aRobert James Kaes1-0/+238
separate module.