|
|
Choosing A Webhost: |
RE: APR Socket Questions: msg#00208apache.apr.devel
> -----Original Message----- > From: Bennett, Tony - CNF [mailto:Bennett.Tony@xxxxxxx] > Subject: RE: APR Socket Questions > > 2) Is "apr_poll( )" the equivalent to "select( )"? How do I convert an > "apr_socket_t" into a "apr_pollfd_t" in order to add to the pollset? > > ... > apr_poll_socket_add(readbits, sock, APR_POLLOUT); > ... Ah, looks great, thanks! However, my installation doesn't have "apr_poll_socket_add( )". I'm using APR-1.0.0, what version of the API are you using? > 7) When setting a socket to listen on a port, how can I choose the > maximum backlog? Normally I'd say "listen( s, SOMAXCONN )". Should I > just use "apr_socket_listen( s, SOMAXCONN )", or is there an APR > replacement for SOMAXCONN? > > Searching APR doesn't reveal SOMAXCONN being used. I guess what I'm asking is the right way to do it, not merely what will work. I'm leery of mixing APR and socket functions and macros -- I'd prefer to go all or nothing. However, if there's no APR equivalent for SOMAXCONN (like there appears to be no equivalent for SOCK_STREAM), then I'll use that. Thanks! Can anyone help me with the non-blocking issues? -david
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | RE: APR Socket Questions, Bennett, Tony - CNF |
|---|---|
| Next by Date: | Re: apr_sockaddr_info_get() produces syslog messages on AIX, Jeff Trawick |
| Previous by Thread: | RE: APR Socket Questions, Bennett, Tony - CNF |
| Next by Thread: | RE: APR Socket Questions, David Barrett |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business. subscribe Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field. subscribe The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business. subscribe Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company. subscribe Total Telecom Total Telecom is "The Economist of the communications industry". subscribe |