summaryrefslogtreecommitdiff
path: root/include/arch/unix/networkio.h
Commit message (Collapse)AuthorAgeFilesLines
* Namespace protection for include/arch/ header filesthommay2003-01-061-158/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | aix/dso.h -> -> aix/apr_arch_dso.h beos/dso.h -> beos/apr_arch_dso.h beos/proc_mutex.h -> beos/apr_arch_proc_mutex.h beos/thread_cond.h -> beos/apr_arch_thread_cond.h beos/thread_mutex.h -> beos/apr_arch_thread_mutex.h beos/threadproc.h -> beos/apr_arch_threadproc.h beos/thread_rwlock.h -> beos/apr_arch_thread_rwlock.h netware/dso.h -> -> netware/apr_arch_dso.h netware/fileio.h -> -> netware/apr_arch_fileio.h netware/global_mutex.h -> netware/apr_arch_global_mutex.h netware/internal_time.h -> netware/apr_arch_internal_time.h netware/networkio.h -> netware/apr_arch_networkio.h netware/pre_nw.h -> netware/apr_arch_pre_nw.h netware/proc_mutex.h -> netware/apr_arch_proc_mutex.h netware/thread_cond.h -> netware/apr_arch_thread_cond.h netware/thread_mutex.h -> netware/apr_arch_thread_mutex.h netware/threadproc.h -> netware/apr_arch_threadproc.h netware/thread_rwlock.h -> netware/apr_arch_thread_rwlock.h os2/dso.h -> os2/apr_arch_dso.h os2/fileio.h -> os2/apr_arch_fileio.h os2/networkio.h -> os2/apr_arch_networkio.h os2/os2calls.h -> os2/apr_arch_os2calls.h os2/proc_mutex.h -> os2/apr_arch_proc_mutex.h os2/thread_cond.h -> os2/apr_arch_thread_cond.h os2/thread_mutex.h -> os2/apr_arch_thread_mutex.h os2/threadproc.h -> os2/apr_arch_threadproc.h os2/thread_rwlock.h -> os2/apr_arch_thread_rwlock.h os390/dso.h -> os390/apr_arch_dso.h unix/dso.h -> unix/apr_arch_dso.h unix/fileio.h -> unix/apr_arch_fileio.h unix/global_mutex.h -> unix/apr_arch_global_mutex.h unix/inherit.h -> unix/apr_arch_inherit.h unix/internal_time.h -> unix/apr_arch_internal_time.h unix/misc.h -> unix/apr_arch_misc.h unix/networkio.h -> unix/apr_arch_networkio.h unix/proc_mutex.h -> unix/apr_arch_proc_mutex.h unix/shm.h -> unix/apr_arch_shm.h unix/thread_cond.h -> unix/apr_arch_thread_cond.h unix/thread_mutex.h -> unix/apr_arch_thread_mutex.h unix/threadproc.h -> unix/apr_arch_threadproc.h unix/thread_rwlock.h -> unix/apr_arch_thread_rwlock.h win32/atime.h -> win32/apr_arch_atime.h win32/dso.h -> win32/apr_arch_dso.h win32/fileio.h -> win32/apr_arch_fileio.h win32/inherit.h -> win32/apr_arch_inherit.h win32/misc.h -> win32/apr_arch_misc.h win32/networkio.h -> win32/apr_arch_networkio.h win32/proc_mutex.h -> win32/apr_arch_proc_mutex.h win32/thread_cond.h -> win32/apr_arch_thread_cond.h win32/thread_mutex.h -> win32/apr_arch_thread_mutex.h win32/threadproc.h -> win32/apr_arch_threadproc.h win32/thread_rwlock.h -> win32/apr_arch_thread_rwlock.h win32/utf8.h -> win32/apr_arch_utf8.h git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64271 13f79535-47bb-0310-9956-ffa450edef68
* Update copyright notices to 2003.thommay2003-01-011-1/+1
| | | | | | | No functional changes git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64251 13f79535-47bb-0310-9956-ffa450edef68
* Fix a problem retrieving the remote socket address for socketstrawick2002-10-251-0/+1
| | | | | | | created via apr_os_sock_put() or apr_s_sock_make() git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63985 13f79535-47bb-0310-9956-ffa450edef68
* map the TCP_NODELAY socket option to SCTP_NODELAY as appropriatetrawick2002-10-221-0/+6
| | | | | | | | Submitted by: Randall Stewart <randall@stewart.chicago.il.us> Reviewed by: Jeff Trawick git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63970 13f79535-47bb-0310-9956-ffa450edef68
* Add apr_socket_create_ex() to allow protocol to be specified for thetrawick2002-10-181-0/+1
| | | | | | | | | | | socket. With APR 1.0, this function will be removed and apr_socket_create() will have the additional parameter. Submitted by: Randall Stewart <randall@stewart.chicago.il.us> Reviewed/mangled by: Jeff Trawick git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63943 13f79535-47bb-0310-9956-ffa450edef68
* Reimplement apr_poll() on Unix. This improves performance by giving therbb2002-07-111-30/+0
| | | | | | | user back control over the memory in the pollset. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63601 13f79535-47bb-0310-9956-ffa450edef68
* rename internal function apr_set_sockaddr_vars() to apr_sockaddr_vars_set()trawick2002-04-011-1/+1
| | | | | | | Submitted by: Kevin Pilch-Bisson git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63210 13f79535-47bb-0310-9956-ffa450edef68
* clean up the unix networking code by creating a new functiontrawick2002-03-281-0/+1
| | | | | | | | | | | | | | | | | to set basic info in apr_sockaddr_t and by reducing the amount of code that messes with the native sockaddrs within the apr_sockaddr_t prototypes for the new function -- apr_set_sockaddr_vars() -- were added for Win32 and OS/2 since otherwise they could get warnings for the lack of a prototype for the non-static function, which resides in sa_common.c for long-term, we need to look at using apr_set_sockaddr_vars() in Win32 and OS/2 code anyway git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63201 13f79535-47bb-0310-9956-ffa450edef68
* Update our copyright for this year.fielding2002-03-131-1/+1
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63117 13f79535-47bb-0310-9956-ffa450edef68
* This patch basically allows BeOS R5's apr_poll to work like it should do!dreid2002-01-141-0/+4
| | | | | | | | | | | | | Essentially R5 is very fast to return if you have a socket available, but if you have more than one you'll only get the first one! hence, we now track how many socket/checks we're trying for and if we don't have all of them (which let's face it seems unlikely) we quickly see if any more sockets are available for us. Messy, but it works :) I've added checking for the lowsocket to reduce the range of sockets we check. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62781 13f79535-47bb-0310-9956-ffa450edef68
* Fix the Unix HAVE_POLL flavor of apr_poll_socket_mask() so thattrawick2001-11-131-2/+1
| | | | | | | | | | | it doesn't segfault. Avoid some wasted storage in a poll-related APR structure. Submitted by: INOUE Seiichiro <inoue@ariel-networks.com> Reviewed by: Jeff Trawick git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62511 13f79535-47bb-0310-9956-ffa450edef68
* In order to use this IMPLEMENT_SET/UNSET schema, this has got to be awrowe2001-07-161-1/+1
| | | | | | | | bit flag... the apr_file_t already has too many int flags hiding in it, and ->flags is already a member of the apr_file_t. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61946 13f79535-47bb-0310-9956-ffa450edef68
* Added an inherit flag to apr_socket_create and other socket creationrbb2001-07-161-0/+1
| | | | | | | | | | | | | functions. This allows APR programs to specify that a socket should be passed to any child processes that are created. The inherit flag is only meaningful if programs use apr_process_create(). This also adds a couple of macros that allow APR types to set and unset the inherit flag. This also fixes Apache to use the new API. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61939 13f79535-47bb-0310-9956-ffa450edef68
* apr_connect() on Unix:trawick2001-07-101-0/+1
| | | | | | | | handle EINTR handle APR timeouts on the socket git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61910 13f79535-47bb-0310-9956-ffa450edef68
* We are setting a simple bitmask. Calling a function to do that is farrbb2001-07-071-2/+10
| | | | | | | | | too expensive. It is much easier to just turn these into macros that do the exact same thing. Submitted by: Dean Gaudet git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61900 13f79535-47bb-0310-9956-ffa450edef68
* Ooopsie. Some unintended things slipped in.orlikowski2001-06-071-3/+0
| | | | | | | | Backing them out. Sorry. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61730 13f79535-47bb-0310-9956-ffa450edef68
* Generate httpd.exp on the fly.orlikowski2001-06-071-0/+3
| | | | | | | | | | | | | This should allow DSOs to work on AIX, without the headache of maintaining the httpd.exp file. This is adapted from OS/2's generation of ApacheCoreOS2.def. There exist a few bugs still: 1) mod_dav and mod_proxy may not yet work, due to certain namespace issues. 2) Some symbols may need to be added, a la core_header.def Once these have been fixed, the old httpd.exp file will be deleted. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61729 13f79535-47bb-0310-9956-ffa450edef68
* Minor header inclusion bug.orlikowski2001-05-101-1/+4
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61604 13f79535-47bb-0310-9956-ffa450edef68
* Recognize systems where the TCP_NODELAY setting is inherited fromtrawick2001-04-051-0/+2
| | | | | | | | | | | the listening socket, and optimize apr_setsockopt(APR_TCP_NODELAY) accordingly. Also, note a recent change to find getnameinfo() on Tru64 in CHANGES. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61463 13f79535-47bb-0310-9956-ffa450edef68
* apr_recvfrom() should only return APR_EOF if recvfrom() returnedtrawick2001-03-311-0/+1
| | | | | | | | | | | | | zero *AND* this is a stream socket. rc zero from a datagram socket just means that somebody sent you a zero-byte datagram. Remove the minimal parm checking from recvfrom()... better to segfault as with most of the rest of APR. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61415 13f79535-47bb-0310-9956-ffa450edef68
* Change the way select based poll works so it works as we'd expect it to, i.e.dreid2001-03-221-0/+3
| | | | | | | the same way as poll. Also add a test program specifically for poll. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61376 13f79535-47bb-0310-9956-ffa450edef68
* Fix the hosed #ifdef APR_HAVE_FOO_H tests, the #if HAVE_ tests, andwrowe2001-02-251-11/+11
| | | | | | | also cleanup s/#ifdef HAVE_FOO_H/#if APR_HAVE_FOO_H/ whrere appropriate. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61303 13f79535-47bb-0310-9956-ffa450edef68
* Update copyright to 2001fielding2001-02-161-1/+1
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61235 13f79535-47bb-0310-9956-ffa450edef68
* Add code to allow APR to track the socket options it has set. Thisdreid2001-01-251-0/+1
| | | | | | | | | code aims to minimise the number of syscalls required to determine the state of a socket. The next step is to change the os_cork/os_uncork code to use basic apr calls and hence make use of this ability. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61126 13f79535-47bb-0310-9956-ffa450edef68
* Add apr_inet_ntop(), apr_inet_pton(), apr_create_socket(), andtrawick2000-11-161-0/+3
| | | | | | | | | | | | | | fix apr_get_ipaddr() to be thread-safe and to support IPv6. apr_create_socket() supports the special AF_UNSPEC family which means get AF_INET6 if you can but fall back to AF_INET because the app doesn't really care. The inclusion of apr_inet_ntop() and apr_inet_pton() still needs to be rolled into Win32, OS/2, and BeOS networkio.h and build scripts. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60741 13f79535-47bb-0310-9956-ffa450edef68
* This is a small step toward's David Reid's IPv6 patch. I startedtrawick2000-11-161-3/+2
| | | | | | | | | | | | | | | | | | | | with the part of David's patch which uses apr_sockaddr_t instead of sockaddr_in inside apr_socket_t, got everything to compile (and seem to run properly on Unix), and simplified some of the code which allocates storage for apr_socket_t and fills out fields in apr_sockaddr_t. I didn't add all the code from the patch that supports IPv6 throughout. I didn't add any of the API enhancements. This includes a port of the code to Win32. I'll later commit the required changes for OS/2. Submitted by: David Reid Reviewed by: Jeff Trawick git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60737 13f79535-47bb-0310-9956-ffa450edef68
* Some systems have poll.h in include/sys, not include. I found thisrbb2000-09-291-0/+3
| | | | | | | problem on non-glibc linux machines. This patch solves the problem. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60540 13f79535-47bb-0310-9956-ffa450edef68
* Provide a socklen_t to the user of APR as a portability aid. Sometrawick2000-09-221-1/+1
| | | | | | | | | | | | | | | | | | systems have unsigned sockaddr len parameters; others have signed. When passing the length by address (as to accept()) a warning is generated if the sign is not correct. This patch assumes that, if no native socklen_t is provided, apr_socklen_t is always signed; that can be easily tweaked for certain platforms later. Inside APR, apr_socklen_t is only used currently in the Unix implementation. Submitted by: Victor J. Orlikowski <v.j.orlikowski@gte.net> Reviewed by: Jeff Trawick git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60538 13f79535-47bb-0310-9956-ffa450edef68
* prefix libapr functions and types with apr_dougm2000-08-021-7/+7
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60470 13f79535-47bb-0310-9956-ffa450edef68
* APR network_io for Unix:trawick2000-06-281-0/+2
| | | | | | | Defer/avoid getsockname() whenever possible. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60280 13f79535-47bb-0310-9956-ffa450edef68
* Big commit. Basically, if APR defines a public feature macro, then APRrbb2000-06-221-4/+5
| | | | | | | | | should also use that macro internally. This keeps us from checking for multiple macros as we were doing in the SENDFILE case. It also means that APR is definately building the same way that external programs expect it to. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60239 13f79535-47bb-0310-9956-ffa450edef68
* This takes the BeOS defines to include the networking code. Removed some ↵dreid2000-06-131-8/+0
| | | | | | | | | uneeded defines and change some to be more obvious. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60196 13f79535-47bb-0310-9956-ffa450edef68
* Tidy up the unix network code in light of the latest networkdreid2000-06-121-8/+1
| | | | | | | update on BeOS. This makes things much tidier. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60179 13f79535-47bb-0310-9956-ffa450edef68
* Remove the beos network I/O code and merge it with the unix code. Mostrbb2000-05-161-0/+24
| | | | | | | of this was common code already. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60049 13f79535-47bb-0310-9956-ffa450edef68
* Fix the ap_poll implementation on Unix. This stops us from re-allocatingrbb2000-04-261-1/+2
| | | | | | | | | the pollfd each time ap_poll is called. Submitted by: Chia-liang Kao (clkao@CirX.ORG) Reviewed by: Ryan Bloom git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@59956 13f79535-47bb-0310-9956-ffa450edef68
* Move apr_config.h and apr_config.hw to apr_private.h and apr_private.hw.rbb2000-04-221-1/+1
| | | | | | | | This should make the fact that this is a private header file more obvious. This also updates all of the references to apr_config.h git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@59924 13f79535-47bb-0310-9956-ffa450edef68
* APR_SO_TIMEOUT now takes microseconds instead of seconds. (The newtrawick2000-04-161-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | CHANGES text also reflects prior work on ap_poll() and ap_set_pipe_timeout()). apr/test/client.c now has a crude command-line mechanism for selecting a read timeout. Included bug fixes: 1) Some storage leaks were removed in BeOS and Unix select() usage. 2) For Win32, the code to process APR_SO_TIMEOUT stored timeout in milliseconds but the code to timeout a TransmitFile() in ap_sendfile() assumed that it had been stored in seconds. 3) ab_apr.c used a 30,000-second timeout in one place. This was changed to a 30-second timeout. 4) fix bad perldoc comment in apr_network_io.h which hid the ap_shutdown() prototype 5) disable stdout buffering in apr/test/client.c so that messages appear in the correct order when an error occurs git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@59870 13f79535-47bb-0310-9956-ffa450edef68
* Change ap_context_t to ap_pool_t. This compiles, runs, and serves pagesrbb2000-04-141-2/+2
| | | | | | | on Linux, but probably breaks somewhere. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@59856 13f79535-47bb-0310-9956-ffa450edef68
* more namespace cleanupdgaudet2000-04-141-3/+0
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@59849 13f79535-47bb-0310-9956-ffa450edef68
* Update the error handling in APR. This includes the docs in APRDesign.rbb2000-04-071-2/+1
| | | | | | | | Any platform that doesn't use errno as error codes are not working properly and will need to be modified. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@59814 13f79535-47bb-0310-9956-ffa450edef68
* fix the rest of the struct foo_t to struct ap_foo_t. Next is removing therbb2000-04-031-2/+2
| | | | | | | struct's where possible. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@59769 13f79535-47bb-0310-9956-ffa450edef68
* Don't use the values of resolver error codes for thetrawick2000-04-031-0/+2
| | | | | | | | corresponding APR error codes. On Unix, return the proper APR error code after a resolver error. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@59764 13f79535-47bb-0310-9956-ffa450edef68
* Update to Apache Software License version 1.1fielding2000-03-311-31/+30
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@59754 13f79535-47bb-0310-9956-ffa450edef68
* Fix all the License issues. Including:rbb2000-03-101-9/+9
| | | | | | | | | s/Apache Group/Apache Software Foundation/ s/1999/2000/ s/Sascha's license/ASF license git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@59688 13f79535-47bb-0310-9956-ffa450edef68
* Back out most of the last commit. Keep APR macros seperate from Apachestoddard2000-01-211-1/+1
| | | | | | | macros. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@59611 13f79535-47bb-0310-9956-ffa450edef68
* Convert HAVE_NETINET... to the APR macstoddard2000-01-201-1/+1
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@59610 13f79535-47bb-0310-9956-ffa450edef68
* Use correct data type for socket address length.sascha1999-12-291-1/+1
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@59557 13f79535-47bb-0310-9956-ffa450edef68
* Fix some warnings when compiling with -Wallrbb1999-12-141-0/+3
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@59520 13f79535-47bb-0310-9956-ffa450edef68
* Add Sendfile to APR. This is not well tested, and a test case is needed.rbb1999-12-041-0/+6
| | | | | | | | | | I did some minor cleanup work, mainly to integrate sendfile into the APR autoconf stuff. Submitted by: John Zedlewski Reviewed by: Ryan Bloom git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@59503 13f79535-47bb-0310-9956-ffa450edef68
* Fix the logic in blocking vs non-blocking pipes to children. It onlyrbb1999-12-031-2/+35
| | | | | | | | makes sense to change the blocking attributes of a pipe if we actually are successful in creating the pipe. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@59501 13f79535-47bb-0310-9956-ffa450edef68