/[Apache-SVN]/httpd/httpd/trunk/include/ap_listen.h
ViewVC logotype

Log of /httpd/httpd/trunk/include/ap_listen.h

Parent Directory Parent Directory | Revision Log Revision Log


Links to HEAD: (view) (annotate)
Sticky Revision:

Revision 806315 - (view) (annotate) - [select for diffs]
Modified Thu Aug 20 19:25:49 2009 UTC (3 months ago) by trawick
File length: 4316 byte(s)
Diff to previous 806010 (colored)
fix wrong name in function prototype which led to 
unresolved reference at link time

hint at adding some doc as well

Revision 806010 - (view) (annotate) - [select for diffs]
Modified Wed Aug 19 23:55:14 2009 UTC (3 months ago) by niq
File length: 4294 byte(s)
Diff to previous 535169 (colored)
Don't require all listeners to be created equal ...

Revision 535169 - (view) (annotate) - [select for diffs]
Modified Fri May 4 11:11:26 2007 UTC (2 years, 6 months ago) by rpluem
File length: 4167 byte(s)
Diff to previous 420983 (colored)
* Add extern "C" linkage to several headers to make it easier to use
  them in C++ code.

PR: 42286
Submitted by: Davi Arnaut <davi haxent.com.br>
Reviewed by: rpluem

Revision 420983 - (view) (annotate) - [select for diffs]
Modified Tue Jul 11 20:33:53 2006 UTC (3 years, 4 months ago) by fielding
File length: 4098 byte(s)
Diff to previous 395228 (colored)
update license header text

Revision 395228 - (view) (annotate) - [select for diffs]
Modified Wed Apr 19 12:11:27 2006 UTC (3 years, 7 months ago) by colm
File length: 3951 byte(s)
Diff to previous 263931 (colored)
Update the copyright year in all .c, .h and .xml files

Revision 263931 - (view) (annotate) - [select for diffs]
Modified Sun Aug 28 23:03:59 2005 UTC (4 years, 2 months ago) by ianh
File length: 3951 byte(s)
Diff to previous 239732 (colored)
Doxygen fixup / cleanup

submited by: Neale Ranns neale ranns.org
reviewed by: Ian Holsman


Revision 239732 - (view) (annotate) - [select for diffs]
Modified Wed Aug 24 19:06:40 2005 UTC (4 years, 3 months ago) by colm
File length: 3816 byte(s)
Diff to previous 239710 (colored)
Correct the function prototype/declaration 


Revision 239710 - (view) (annotate) - [select for diffs]
Modified Wed Aug 24 16:51:20 2005 UTC (4 years, 3 months ago) by colm
File length: 3812 byte(s)
Diff to previous 190563 (colored)
Provide a function for closing all of the listeners. 

  * This is useful for properly implementing a graceful stop and restart
    where we want child processess to be able to carry on serving a request 
    but "de-listen" from a port. So that another instance entirely can be 
    started in our place, or to unbind from a "Listen" directive an admin 
    has removed from the configuration.


Revision 190563 - (view) (annotate) - [select for diffs]
Modified Tue Jun 14 09:21:18 2005 UTC (4 years, 5 months ago) by pquerna
File length: 3680 byte(s)
Diff to previous 168139 (colored)
Merge the listen-protocol sandbox branch to trunk.

I will be adding documentation for the new directives hopefully in the next day or so.

* server/core.c: Added 'Protocol' to the core module config
                 Added ap_{set,get}_server_protocol API.
                 Added new directive: 'AcceptFilter'.
                 Enable 'httpready' by default on systems that support it.  Use dataready filters for others.

* server/listen.c: Attempt to inherit protocols from Listener Records to Server configs.
                   The 'Listen' directive can now optionally take a protocol arg
                   Move bits that determined which accept filter is applied to core.c.
                   Added bits to find the correct accept filter based on the core's configuration.

* include/{ap_listen.h,http_core.h}: Add Protocol to respective structures.

* include/http_core.h: Add the accf_map table to the core_server_config structure

* include/ap_mmn.h: Minor MMN Bump for the new interfacces.

* modules/ssl/ssl_engine_init.c: Use the new protocol framework to enable mod_ssl for 'https' websites.


Revision 168139 - (view) (annotate) - [select for diffs]
Modified Wed May 4 16:02:44 2005 UTC (4 years, 6 months ago) by pquerna
File length: 3555 byte(s)
Diff to previous 157583 (colored)
The SPMT_OS2_MPM doesn't exist.  The warning is also wrong, since both winnt and prefork MPMs call this function.

Revision 157583 - (view) (annotate) - [select for diffs]
Modified Tue Mar 15 20:04:58 2005 UTC (4 years, 8 months ago) by jerenkrantz
File length: 3689 byte(s)
Diff to previous 151408 (colored)
Add ReceiveBufferSize directive to control the TCP receive buffer.

Submitted by: Eric Covener <covener gmail.com>
Reviewed by:  Justin Erenkrantz (with minor formatting tweaks)

Revision 151408 - (view) (annotate) - [select for diffs]
Modified Fri Feb 4 20:28:49 2005 UTC (4 years, 9 months ago) by jerenkrantz
File length: 3334 byte(s)
Diff to previous 109498 (colored)
Update copyright year to 2005 and standardize on current copyright owner line.

Revision 109498 - (view) (annotate) - [select for diffs]
Modified Thu Dec 2 13:28:04 2004 UTC (4 years, 11 months ago) by jorton
File length: 3298 byte(s)
Diff to previous 106988 (colored)
Fix gcc "no previous prototype" warnings after reorganisation:

* server/core_filters.c (ap_core_input_filter, ap_core_output_filter,
ap_net_time_filter): Renamed to add ap_ prefixes for global symbols.

* include/ap_listen.h: Don't export ap_listen_open at all, it's not
used outside server/listen.c any more.

* server/listen.c (open_listeners): Renamed from ap_listen_open.

Revision 106988 - (view) (annotate) - [select for diffs]
Modified Tue Nov 30 06:29:56 2004 UTC (4 years, 11 months ago) by jerenkrantz
File length: 3832 byte(s)
Diff to previous 106843 (colored)
Declare the ap_set_listen* functions with AP_DECLARE_NONSTD for Win32 support.

(I think this is what is needed for Win32, but I'm not quite sure.)

Revision 106843 - (view) (annotate) - [select for diffs]
Modified Sun Nov 28 19:37:41 2004 UTC (4 years, 11 months ago) by jerenkrantz
File length: 3811 byte(s)
Diff to previous 106103 (colored)
Properly export ap_listen_* functions.

* server/listen.c: Add AP_DECLARE as appropriate.
* include/ap_listen.h: Add AP_DECLARE as appropriate.

Revision 106103 - (view) (annotate) - [select for diffs]
Modified Sun Nov 21 18:50:36 2004 UTC (5 years ago) by nd
File length: 3736 byte(s)
Diff to previous 102619 (colored)
general property cleanup

Revision 102619 - (view) (annotate) - [select for diffs]
Modified Mon Feb 9 20:40:53 2004 UTC (5 years, 9 months ago) by nd
File length: 3736 byte(s)
Diff to previous 102548 (colored)
fix name of The Apache Software Foundation

Revision 102548 - (view) (annotate) - [select for diffs]
Modified Sat Feb 7 19:27:57 2004 UTC (5 years, 9 months ago) by nd
File length: 3732 byte(s)
Diff to previous 102525 (colored)
fix copyright dates according to the first check in

Revision 102525 - (view) (annotate) - [select for diffs]
Modified Fri Feb 6 22:58:42 2004 UTC (5 years, 9 months ago) by nd
File length: 3732 byte(s)
Diff to previous 102135 (colored)
apply Apache License, Version 2.0

Revision 102135 - (view) (annotate) - [select for diffs]
Modified Thu Jan 1 13:26:26 2004 UTC (5 years, 10 months ago) by nd
File length: 5758 byte(s)
Diff to previous 98573 (colored)
update license to 2004.

Revision 98573 - (view) (annotate) - [select for diffs]
Modified Mon Feb 3 17:53:28 2003 UTC (6 years, 9 months ago) by nd
File length: 5758 byte(s)
Diff to previous 93918 (colored)
finished that boring job:
update license to 2003.

Happy New Year! ;-))

Revision 93918 - (view) (annotate) - [select for diffs]
Modified Wed Mar 13 20:48:07 2002 UTC (7 years, 8 months ago) by fielding
File length: 5758 byte(s)
Diff to previous 91948 (colored)
Update our copyright for this year.

Revision 91948 - (view) (annotate) - [select for diffs]
Modified Wed Nov 14 18:19:32 2001 UTC (8 years ago) by bnicholes
File length: 5758 byte(s)
Diff to previous 91916 (colored)
Fixed ap_listeners so that it will be included in the AWK generated export lists

Revision 91916 - (view) (annotate) - [select for diffs]
Modified Tue Nov 13 22:42:38 2001 UTC (8 years ago) by rbb
File length: 5742 byte(s)
Diff to previous 91896 (colored)
Allow modules that add sockets to the ap_listeners list to
define the function that should be used to accept on that
socket.  Each MPM can define their own function to use for
the accept function with the MPM_ACCEPT_FUNC macro.  This
also abstracts out all of the Unix accept error handling
logic, which has become out of synch across Unix MPMs.

The code flow is much easier now for different transports:

1)  During pre-config, post-config or while parsing the config
    file, add a socket to the ap_listeners list, making sure to
    define an accept function at the same time.

2)  MPMs find the correct listener, and call the accept function
    that was defined in step 1.

3)  That accept function returns a void pointer, which is passed
    to the create_connection hook.

4)  create_connection adds the correct low-level filters.

Revision 91896 - (view) (annotate) - [select for diffs]
Modified Tue Nov 13 06:04:25 2001 UTC (8 years ago) by rbb
File length: 5575 byte(s)
Diff to previous 88498 (colored)
Remove commas from the end of the macros that define
directives that are used by MPMs.  Previous to this patch,
you would use these macros without commans, which was unlike
any other directives. Now, after the macro, you must have
a comma.  This makes the macros look more like the rest of the
directives.

I know this is cosmetic, and I was going to leave it alone, but when
I found out that it bothered Cliff too, I decided to fix it after all.

Submitted by:	Ryan Bloom and Cliff Woolley

Revision 88498 - (view) (annotate) - [select for diffs]
Modified Mon Mar 12 17:29:02 2001 UTC (8 years, 8 months ago) by stoddard
File length: 5576 byte(s)
Diff to previous 88184 (colored)
  *) Reimplement the Windows MPM (mpm_winnt.c) to eliminate calling
     DuplicateHandle on an IOCompletionPort (a practice which
     MS "discourages"). The new model does not rely on associating
     the completion port with the listening sockets, thus the
     completion port can be completely managed within the child
     process.  A dedicated thread accepts connections off the network,
     then calls PostQueuedCompletionStatus() to wake up worker
     threads blocked on the completion port.
     [Bill Stoddard]

Revision 88184 - (view) (annotate) - [select for diffs]
Modified Fri Feb 16 04:26:53 2001 UTC (8 years, 9 months ago) by fielding
File length: 5761 byte(s)
Diff to previous 87452 (colored)
Update copyright to 2001

Revision 87452 - (view) (annotate) - [select for diffs]
Modified Wed Dec 20 14:27:02 2000 UTC (8 years, 11 months ago) by bjh
File length: 5756 byte(s)
Diff to previous 87424 (colored)
Include mpm.h so the tests for SPMT_OS2_MPM actually work.

Revision 87424 - (view) (annotate) - [select for diffs]
Modified Tue Dec 19 17:05:48 2000 UTC (8 years, 11 months ago) by rbb
File length: 5739 byte(s)
Diff to previous 87371 (colored)
Force all Apache functions to be linked into the executable, whether they
are used or not.  This uses the same mechanism that is used for APR
and APR-util.  This may not be the correct solution, but it works, and that
is what I really care about.  This also renames CHARSET_EBCDIC to
AP_CHARSET_EBCDIC.  This is for namespace correctness, but it also makes
the exports script a bit easier.

Revision 87371 - (view) (annotate) - [select for diffs]
Modified Sat Dec 16 14:49:18 2000 UTC (8 years, 11 months ago) by trawick
File length: 5611 byte(s)
Diff to previous 87152 (colored)
tweak the responsibilities of make_sock() and alloc_listener()
because we need to resolve the hostname (i.e., call apr_getaddrinfo())
before creating the socket so that we get a socket of the appropriate
family

also, simplify some of the address displays in some error logs

Revision 87152 - (view) (annotate) - [select for diffs]
Modified Fri Dec 1 23:26:04 2000 UTC (8 years, 11 months ago) by rbb
File length: 5518 byte(s)
Diff to previous 86867 (colored)
Remove an unnecessary header file.
PR:
Obtained from:
Submitted by:
Reviewed by:

Revision 86867 - (view) (annotate) - [select for diffs]
Modified Wed Nov 8 11:42:21 2000 UTC (9 years ago) by dreid
File length: 5535 byte(s)
Diff to previous 86179 (colored)
Missed these first time round...  More apr_port_t changes.

Revision 86179 - (view) (annotate) - [select for diffs]
Modified Fri Sep 8 14:59:46 2000 UTC (9 years, 2 months ago) by gregames
File length: 5533 byte(s)
Diff to previous 85976 (colored)
Change prefork to use the same listen api as the rest of the unix mpms
(ap_setup_listeners).  This eliminates the need to force a recompile of
listen.c when you switch to/from using prefork.

Revision 85976 - (view) (annotate) - [select for diffs]
Modified Wed Aug 2 05:27:38 2000 UTC (9 years, 3 months ago) by dougm
File length: 5558 byte(s)
Diff to previous 85935 (colored)
prefix libapr functions and types with apr_

Revision 85935 - (view) (annotate) - [select for diffs]
Modified Sat Jul 29 18:23:38 2000 UTC (9 years, 3 months ago) by rbb
File length: 5557 byte(s)
Diff to previous 85856 (colored)
Document ap_listen.h using ScanDoc.

Revision 85856 - (view) (annotate) - [select for diffs]
Modified Sun Jul 16 07:12:42 2000 UTC (9 years, 4 months ago) by bjh
File length: 3894 byte(s)
Diff to previous 85832 (colored)
OS/2: Put back creation of listeners in main thread in spmt_os2 MPM.

Revision 85832 - (view) (annotate) - [select for diffs]
Modified Thu Jul 13 16:05:07 2000 UTC (9 years, 4 months ago) by rbb
File length: 3868 byte(s)
Diff to previous 85809 (colored)
Fix the prefork MPM to make it compile and work again out-of-the-box.

Revision 85809 - (view) (annotate) - [select for diffs]
Modified Mon Jul 10 21:37:23 2000 UTC (9 years, 4 months ago) by rbb
File length: 3820 byte(s)
Diff to previous 85599 (colored)
Move setup_listeners to listen.c.  This renames it to ap_setup_listeners,
and removes the duplicated code from all effected MPMs.  The only this
doesn't touch, is Windows.  That MPM was using a different setup_listeners.
If one of the Windows guys would like to modify the WinNT MPM to use the
same setup_lsiteners, that would be VERY cool.

Revision 85599 - (view) (annotate) - [select for diffs]
Modified Sat Jun 17 16:29:53 2000 UTC (9 years, 5 months ago) by ben
File length: 3754 byte(s)
Diff to previous 85253 (colored)
More consification, correct command initialisation.

Revision 85253 - (view) (annotate) - [select for diffs]
Modified Fri May 19 05:01:53 2000 UTC (9 years, 6 months ago) by wrowe
File length: 3714 byte(s)
Diff to previous 84877 (colored)
  Fixes to allow Apache to run as a Win95 service... highlights

  main_win32.h : Moved delarations to a header, by request
  ap_listen.h :  References types declared in http_config.h
  http_main.h :  Add the Win32 flavor entry point declaration
  apr.hw :       Cleanup the redundancy department of redundancy 
  win32/proc.c : Double null termination was required here
  
  Everything else should be obvious and isolated to Win32.
  Build files will be committed seperately.

Revision 84877 - (view) (annotate) - [select for diffs]
Modified Fri Mar 31 07:19:05 2000 UTC (9 years, 7 months ago) by fielding
File length: 3689 byte(s)
Diff to previous 84725 (colored)
Update to Apache Software License version 1.1

Revision 84725 - (view) (annotate) - [select for diffs]
Modified Fri Mar 10 00:07:37 2000 UTC (9 years, 8 months ago) by rbb
File length: 4027 byte(s)
Diff to previous 83952 (colored)
Fix all the License issues.  Including:
s/Apache Group/Apache Software Foundation/
s/1999/2000/
s/Sascha's license/ASF license

Revision 83952 - (view) (annotate) - [select for diffs]
Modified Fri Oct 8 19:07:05 1999 UTC (10 years, 1 month ago) by stoddard
File length: 3901 byte(s)
Diff to previous 83944 (colored)
Use AcceptEx with an async completion port. What we are gaining here is
LIFO dispatching out of the worker thread pool.

Revision 83944 - (view) (annotate) - [select for diffs]
Modified Thu Oct 7 21:47:36 1999 UTC (10 years, 1 month ago) by martin
File length: 3866 byte(s)
Diff to previous 83943 (colored)
ap_listeners must be extern, otherwise you get multiple definitions

Revision 83943 - (view) (annotate) - [select for diffs]
Modified Thu Oct 7 20:48:26 1999 UTC (10 years, 1 month ago) by bhyde
File length: 3859 byte(s)
Diff to previous 83918 (colored)
Well this was thought provoking.

Drive out the use of malloc in two places.

In listen.c, using the global process pool instead.  That changes the
API into listen so that a process is passed in rather than the config
pool.  That's all was easy.

The pain is propogating a change into all N of the mpm, they
are all similar but different in their use of listen.c  There
is a lot to dislike about similar but code scattered code.

I changed the N setup_listener routines, they now take only
the server since they can dig the config and global pool
out of there.

Free today: ap_setup_prelinked_modules now takes the process so it
can allocate it's table in the process's pool rathern than use
malloc.

Revision 83918 - (view) (annotate) - [select for diffs]
Modified Fri Sep 24 22:01:21 1999 UTC (10 years, 2 months ago) by manoj
File length: 3858 byte(s)
Diff to previous 83879 (colored)
Restarts were hosed after the APR changes because we were opening
sockets even when we had them open already. So, for now, add an "active"
flag that indicates whether the socket stored in the listen_rec is an
actual open socket yet.

Revision 83879 - (view) (annotate) - [select for diffs]
Modified Wed Sep 8 14:15:55 1999 UTC (10 years, 2 months ago) by rbb
File length: 3842 byte(s)
Diff to previous 83852 (colored)
Remove all of the calls to functions like "ap_popenf".  These functions were
moved down to APR, but they are being removed.  They are not portable, and
were only moved down for backwards compatability.  With this change, they can
be safely removed, which is the next commit on it's way.
Submitted by:  Ryan Bloom and Paul Reder

Revision 83852 - (view) (annotate) - [select for diffs]
Modified Tue Aug 31 05:35:52 1999 UTC (10 years, 2 months ago) by rbb
File length: 3913 byte(s)
Diff to previous 83394 (colored)
Changed pools to contexts.  Tested with prefork and pthread mpm's.  I'll
check this out tomorrow and make sure everything was checked in correctly.

Revision 83394 - (view) (annotate) - [select for diffs]
Modified Tue Jun 29 02:49:29 1999 UTC (10 years, 5 months ago) by manoj
File length: 3905 byte(s)
Diff to previous 83390 (colored)
Change method of checking for active FDs after poll() in the pthread
MPM. The new method doesn't require any changes to the listen
abstraction.

Revision 83390 - (view) (annotate) - [select for diffs]
Modified Sun Jun 27 03:45:15 1999 UTC (10 years, 5 months ago) by manoj
File length: 3950 byte(s)
Diff to previous 83385 (colored)
Updated the pthread MPM to work with the rest of the code

Revision 83385 - (view) (annotate) - [select for diffs]
Added Fri Jun 25 01:25:11 1999 UTC (10 years, 5 months ago) by dgaudet
File length: 3905 byte(s)
- ap_listen.h: interface to Listen, ListenBackLog and SendBufferSize
  directives
- I didn't update mpmt_pthread with this change, it shouldn't be hard to fix.
- maybe this isn't the best way to abstract listen... but it gets a little
  bit of the job done

This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, enter a numeric revision.

  Diffs between and
  Type of Diff should be a

apache@apache.org
ViewVC Help
Powered by ViewVC 1.1.2