httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ryan Bloom <...@raleigh.ibm.com>
Subject Re: cvs commit: apache-2.0/mpm/src/modules/mpm/winnt winnt.c
Date Sat, 21 Aug 1999 15:22:24 GMT

I haven't looked at listen.c yet.  I'll get to it soon.  From what I do
know about it, yes APR can hep big time in this file.

Ryan

On Fri, 20 Aug 1999, Dean Gaudet wrote:

> this stuff in listen.c -- it can be cleaned up by APR right?  'cause I
> didn't know what else to do with it at the time... but I don't think the
> platform dependant stuff should be in listen.c. 
> 
> Dean
> 
> On 21 Aug 1999 stoddard@hyperreal.org wrote:
> 
> > stoddard    99/08/20 21:43:18
> > 
> >   Modified:    mpm/src/main listen.c
> >                mpm/src/modules/mpm/winnt winnt.c
> >   Log:
> >   Forgot listen.c in the earlier AcceptEx patch to winnt.c.
> >   Enable winnt mpm to detech OS at runtime.
> >   
> >   Revision  Changes    Path
> >   1.5       +9 -0      apache-2.0/mpm/src/main/listen.c
> >   
> >   Index: listen.c
> >   ===================================================================
> >   RCS file: /home/cvs/apache-2.0/mpm/src/main/listen.c,v
> >   retrieving revision 1.4
> >   retrieving revision 1.5
> >   diff -u -r1.4 -r1.5
> >   --- listen.c	1999/07/26 07:03:09	1.4
> >   +++ listen.c	1999/08/21 04:43:08	1.5
> >   @@ -78,11 +78,20 @@
> >        else
> >    	ap_snprintf(addr, sizeof(addr), "port %d", ntohs(server->sin_port));
> >    
> >   +#ifdef WIN32
> >   +    s = WSASocket(AF_INET, SOCK_STREAM, IPPROTO_TCP, NULL, 0, WSA_FLAG_OVERLAPPED);
> >   +    if (s == INVALID_SOCKET) {
> >   +	ap_log_error(APLOG_MARK, APLOG_CRIT, NULL,
> >   +                     "make_sock: failed to get a socket for %s", addr);
> >   +	return -1;
> >   +    }
> >   +#else
> >        if ((s = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP)) == -1) {
> >    	ap_log_error(APLOG_MARK, APLOG_CRIT, NULL,
> >    		    "make_sock: failed to get a socket for %s", addr);
> >    	return -1;
> >        }
> >   +#endif
> 
> 

_______________________________________________________________________
Ryan Bloom		rbb@raleigh.ibm.com
4205 S Miami Blvd	
RTP, NC 27709		It's a beautiful sight to see good dancers 
			doing simple steps.  It's a painful sight to
			see beginners doing complicated patterns.	


Mime
View raw message