summaryrefslogtreecommitdiff
path: root/network_io
Commit message (Collapse)AuthorAgeFilesLines
* With the removal of apr_poll(), the apr_wait_for_io_or_timeout() functiongstein2003-11-174-5/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | needed to be rebuilt. Specifically, it needs a pollset, but we don't want to allocate that all the time. Thus, we need to create it once at socket or file creation time, and then reuse that pollset. NOTE: this makes the library compile, but some of the test programs may not. I have also not verified this work yet (in favor of just getting it to at least compile...) For the apr_arch_*.h files, I added a pollset member to the file and socket structures. For the various open/dup/etc functions, I added the creation of that pollset whenever a file or socket is created. (I may have missed some and will verify further) For the socket create and sendrecv function, I added the creation of the pollset. (again, may have missed some, but if everybody uses alloc_socket, then we should be okay) * support/unix/waitio.c: rebuild in terms of the pollset git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64759 13f79535-47bb-0310-9956-ffa450edef68
* The use of "netmask" to hold options is a bit beyond bogus. That term hasgstein2003-11-025-97/+98
| | | | | | | | | | | | | | | an entirely different meaning in a networking context. Rename the socket field to "options". Also simplified the test/set macros to just take a socket. * include/arch/os2/apr_arch_networkio.h: * include/arch/unix/apr_arch_networkio.h: * include/arch/win32/apr_arch_networkio.h: - perform adjustments as above. change all uses. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64710 13f79535-47bb-0310-9956-ffa450edef68
* OS/2: get apr_socket_atmark() to build, adding a required size parameter tobjh2003-10-161-2/+3
| | | | | | | the ioctl call. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64690 13f79535-47bb-0310-9956-ffa450edef68
* Time to turn on the protocol member for APR 1.0.wrowe2003-10-153-12/+0
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64688 13f79535-47bb-0310-9956-ffa450edef68
* Implement apr_socket_atmark, similar to socket_atmark except 1) it'swrowe2003-10-143-0/+40
| | | | | | | | | | | | | | portable, and 2) the return value is passed by a boolean (int) ref, with errors returned as an apr_status_t. The question is, how portable? sys/sockio.h seems sufficent for me on hp/ux, solaris, linux, osx, and this works on Win32. The Netware and OS2 implementations are best guesses. Submitted by: Jim Jagielski and William Rowe git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64684 13f79535-47bb-0310-9956-ffa450edef68
* Make use of the AI_ADDRCONFIG flag conditional (some versions ofjorton2003-09-291-2/+2
| | | | | | | | | | | | | | | glibc 2.1 don't either support it or fail correctly): * build/apr_network.m4 (APR_CHECK_GETADDRINFO_ADDRCONFIG): New macro. * configure.in: Use APR_CHECK_GETADDRINFO_ADDRCONFIG. * network_io/unix/sockaddr.c (call_resolver): Only use the AI_ADDRCONFIG flag if HAVE_GAI_ADDRCONFIG is defined. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64661 13f79535-47bb-0310-9956-ffa450edef68
* work around a problem in current AIX getaddrinfo()trawick2003-09-091-0/+10
| | | | | | | | it wasn't needed in previous releases of APR or Apache because we didn't call the resolver when hostname was NULL git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64613 13f79535-47bb-0310-9956-ffa450edef68
* axe these deprecated functions:trawick2003-09-039-224/+5
| | | | | | | | | apr_getsocketopt, apr_recv, apr_recvfrom, apr_send, apr_sendfile, apr_sendto, apr_sendv, apr_setsocketopt, apr_socket_set_inherit, apr_socket_unset_inherit git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64605 13f79535-47bb-0310-9956-ffa450edef68
* remove these deprecated interfaces:trawick2003-09-033-117/+7
| | | | | | | | apr_accept, apr_bind, apr_connect, apr_listen, apr_shutdown, apr_socket_create_ex, MAX_SECONDS_TO_LINGER git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64604 13f79535-47bb-0310-9956-ffa450edef68
* Attempt to put this Darwin getnameinfo() sillyness behind us forever. Ifjerenkrantz2003-08-311-0/+19
| | | | | | | | | | | | | | | | future releases of Darwin get it 'right', then we'll detect that. Take Jeff's gni_mapped and rewrite it as an autoconf macro, so we can do configure-time detection of this brokenness and stop hardcoding Darwin's inability to do the drop down. Then, take Colm's patch and make it conditional on the autoconf macro above. Submitted by: Colm MacCarthaigh <colm@stdlib.net> and Jeff Trawick Reviewed by: Justin Erenkrantz git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64599 13f79535-47bb-0310-9956-ffa450edef68
* Set the hostnames on all apr_sockaddr_t's returned.jerenkrantz2003-08-151-0/+2
| | | | | | | | Since we're at the same lifetime as the prev_sa, it's safe to just point to that one as well. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64590 13f79535-47bb-0310-9956-ffa450edef68
* If we don't have IPv6 enabled within APR (even if the OS supports it), wejerenkrantz2003-08-141-1/+11
| | | | | | | | | | | | | need to fail over to APR_INET rather than passing APR_UNSPEC. (Justin tweaked the patch so this code would always execute and add a description why we need this because it's not exactly obvious.) Submitted by: Colm MacCarthaigh <colm@stdlib.net> Reviewed by: Justin Erenkrantz git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64589 13f79535-47bb-0310-9956-ffa450edef68
* Make the getaddrinfo (IPv6) and gethostbyname (IPv4) implementationsjerenkrantz2003-08-141-2/+7
| | | | | | | | consistent in storing NULL values in the hostname if that is what was passed in by the caller. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64588 13f79535-47bb-0310-9956-ffa450edef68
* Modify apr_sockaddr_info_get to call the resolver when we do not have ajerenkrantz2003-08-131-17/+20
| | | | | | | | | | | | | | hostname. Also, fix bugs in the getaddrinfo() implementation which are present when a hostname is not available. (Justin modified Colm's patch to set servname when we do not have a hostname. RFC 2553 requires one of them to be non-NULL, and Solaris enforces that.) Submitted by: Colm MacC�rthaigh <colm@stdlib.net> Reviewed by: Justin Erenkrantz git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64587 13f79535-47bb-0310-9956-ffa450edef68
* leave a comment about an interesting and possibly unexpectedtrawick2003-08-011-0/+8
| | | | | | | behavior git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64576 13f79535-47bb-0310-9956-ffa450edef68
* Use AI_ADDRCONFIG flag by default, where available.jorton2003-07-171-0/+15
| | | | | | | | | * sockaddr.c (call_resolver): For lookups of AF_UNSPEC addresses, set the AI_ADDRCONFIG flag; retry without the flag if getaddrinfo returns EAI_BADFLAGS. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64571 13f79535-47bb-0310-9956-ffa450edef68
* apr_socket_data_set(): allow the same key to be used fortrawick2003-07-083-11/+83
| | | | | | | multiple sockets in the same pool. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64565 13f79535-47bb-0310-9956-ffa450edef68
* Fix some problems with non-blocking socket handling on unixtrawick2003-05-303-21/+24
| | | | | | | | that resulted in infinite timeouts being used for non-blocking sockets with apr_socket_connect() and some read/write calls. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64522 13f79535-47bb-0310-9956-ffa450edef68
* fix some minor style problems (indention, curly braces)trawick2003-05-301-40/+40
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64521 13f79535-47bb-0310-9956-ffa450edef68
* Fix a bug in socket timeout handling on unix that left thetrawick2003-05-301-0/+2
| | | | | | | | | | socket non-blocking after disabling the timeout. Submitted by: Jacob Craig Lewallen <jlewalle@cs.ucr.edu> Reviewed by: Jeff Trawick git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64520 13f79535-47bb-0310-9956-ffa450edef68
* Implement APR_SO_RCVBUF socket option on Unix.trawick2003-04-041-0/+12
| | | | | | | | Submitted by: Adam Sussman <myddryn@vishnu.vidya.com> Reviewed by: Jeff Trawick git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64472 13f79535-47bb-0310-9956-ffa450edef68
* Make consistent with other platforms by not exporting apr_sendfilefielding2003-04-011-24/+7
| | | | | | | | | if no APR_HAS_SENDFILE. If it should be exported, then someone will have to remove the conditionals from the global include file and add stubs to the other platforms for apr_sendfile and apr_socket_sendfile. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64466 13f79535-47bb-0310-9956-ffa450edef68
* Keep screaming about these bogus assumptions until they disappear.wrowe2003-03-191-0/+1
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64433 13f79535-47bb-0310-9956-ffa450edef68
* Namespace protection, thanks to Craig Rodrigues <rodrigc@attbi.com>wrowe2003-02-243-3/+3
| | | | | | | | for the original patch. Use the new symbols in all internals, taking us one step closer to being ready to just chop out the old defines. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64378 13f79535-47bb-0310-9956-ffa450edef68
* Just an interesting observation to Win32 IPV6 hackers.wrowe2003-02-161-0/+3
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64359 13f79535-47bb-0310-9956-ffa450edef68
* update apr_socket_opt_set() on Unix to get rid of thetrawick2003-02-071-21/+25
| | | | | | | | surprising way it checked which option was being manipulated, and at the same time catch bogus calls git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64340 13f79535-47bb-0310-9956-ffa450edef68
* Any header required by one platform is likely required by them all...wrowe2003-01-101-2/+0
| | | | | | | if testsuite IPV6 wasn't working, this is probably the reason. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64284 13f79535-47bb-0310-9956-ffa450edef68
* rename apr_arch_fileio.h to apr_arch_file_io.h for consistencythommay2003-01-072-2/+2
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64275 13f79535-47bb-0310-9956-ffa450edef68
* Namespace protection for include/arch/ header filesthommay2003-01-0615-22/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-0113-13/+13
| | | | | | | No functional changes git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64251 13f79535-47bb-0310-9956-ffa450edef68
* NetWare needs some defines that are in apr_private.hbnicholes2002-12-181-0/+3
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64190 13f79535-47bb-0310-9956-ffa450edef68
* Rename apr_recvfrom -> apr_socket_recvfrombjh2002-11-201-3/+14
| | | | | | | Missed in last round of renames. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64051 13f79535-47bb-0310-9956-ffa450edef68
* Win32: Fix Win32 compile break due to last commit (renames)stoddard2002-11-202-2/+2
| | | | | | | | Submitted by: Sebastian Bergmann Reviewed by: Bill Stoddard git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64046 13f79535-47bb-0310-9956-ffa450edef68
* *) Renames done (deprecated functions wrapped):thommay2002-11-2011-117/+406
| | | | | | | | | | | | | | | | | | | | | | | | | | | | apr_filename_of_pathname -> apr_filepath_name_get apr_get_groupid -> apr_gid_get apr_get_groupname -> apr_gid_name_get apr_compare_groups -> apr_gid_compare apr_parse_addr_port -> apr_port_addr_parse apr_shutdown -> apr_socket_shutdown apr_bind -> apr_socket_bind apr_listen -> apr_socket_listen apr_accept -> apr_socket_accept apr_connect -> apr_socket_connect apr_send -> apr_socket_send apr_sendv -> apr_socket_sendv apr_sendto -> apr_socket_sendto apr_implode_gmt -> apr_time_exp_gmt_get apr_get_home_directory -> apr_uid_homepath_get apr_get_userid -> apr_uid_get apr_current_userid -> apr_uid_current apr_compare_users -> apr_uid_compare apr_get_username -> apr_uid_name_get apr_recvfrom -> apr_socket_recvfrom apr_sendfile -> apr_socket_sendfile apr_recv -> apr_socket_recv git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64043 13f79535-47bb-0310-9956-ffa450edef68
* add APR_IPV6_V6ONLY socket optiontrawick2002-11-132-0/+28
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64019 13f79535-47bb-0310-9956-ffa450edef68
* Fix build on BSD/OS 4.0, where sys/sysctl.h needs other headers to bejorton2002-11-121-1/+2
| | | | | | | | included first; only include this header on FreeBSD, since it's only used on FreeBSD by the include_hdrs_in_length() function. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64017 13f79535-47bb-0310-9956-ffa450edef68
* Based on Brad's feedback, we don't want really huge things on thewrowe2002-10-301-19/+50
| | | | | | | | | | | | | stack, so set an arbitrary limit and retain the malloc-for-too-many WSABUFs architecture. However, don't waste extra stack space. Also create an arbitrary buffer of 4kb to deal with headers and trailers. If this small buffer is exceeded, punt to apr_sendv instead of following these multi-copy semantics, and let sendv do what sendv does best. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63996 13f79535-47bb-0310-9956-ffa450edef68
* Fat fingers, missing an #endifwrowe2002-10-271-0/+1
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63988 13f79535-47bb-0310-9956-ffa450edef68
* The last broken tree was a good example that sa_common has outlivedwrowe2002-10-273-1025/+870
| | | | | | | | | its usefulness. Win32 will now use unix/sockaddr.t in full (which it essentially had already done.) Only two small changes to grab the right errno. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63987 13f79535-47bb-0310-9956-ffa450edef68
* Fix a problem retrieving the remote socket address for socketstrawick2002-10-255-0/+34
| | | | | | | 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
* fix a typo in a commenttrawick2002-10-241-1/+1
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63981 13f79535-47bb-0310-9956-ffa450edef68
* map the TCP_NODELAY socket option to SCTP_NODELAY as appropriatetrawick2002-10-222-4/+31
| | | | | | | | 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
* minor style tweakstrawick2002-10-221-4/+4
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63969 13f79535-47bb-0310-9956-ffa450edef68
* style tweaks onlytrawick2002-10-221-20/+20
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63968 13f79535-47bb-0310-9956-ffa450edef68
* Win32: Fix apr_shutdown() to honor the setting of apr_shutdown_how_estoddard2002-10-221-1/+1
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63961 13f79535-47bb-0310-9956-ffa450edef68
* fix compile break in OS/2 and Win32 apr_os_sock_make()trawick2002-10-182-4/+4
| | | | | | | Reported by: Brent R. Matzelle <bmatzelle@yahoo.com> git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63948 13f79535-47bb-0310-9956-ffa450edef68
* apr_os_sock_put() shouldn't assume any particular protocoltrawick2002-10-183-3/+3
| | | | | | | | 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@63946 13f79535-47bb-0310-9956-ffa450edef68
* fix compile breaktrawick2002-10-181-1/+1
| | | | | | | | 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@63945 13f79535-47bb-0310-9956-ffa450edef68
* Add apr_socket_create_ex() to allow protocol to be specified for thetrawick2002-10-183-27/+81
| | | | | | | | | | | 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
* Didn't intend to commit this. Was attempting to commit comments onwrowe2002-10-151-15/+1
| | | | | | | another file. Bahhh ... more sleep would be good. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63931 13f79535-47bb-0310-9956-ffa450edef68