Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

RE: APR Socket Questions: msg#00208

apache.apr.devel

Subject: RE: APR Socket Questions

> -----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>
Google Custom Search

Recently Viewed:
ide.eclipse.wtp...    bug-tracking.ro...    xfree86.cvs/200...    lisp.wxcl.devel...    file-systems.ar...    kde.devel.kwrit...    jakarta.jetspee...    qnx.openqnx.dev...    drivers.openib/...    ports.xbox.deve...    gis.gdal.devel/...    netbsd.ports.ma...    ubuntu.marketin...    systemtap/2005-...    web.omniweb/200...    mail.qmail.ldap...    hardware.soekri...    os.netbsd.devel...    audio.madman.ge...    tv.freeguide-tv...    cluster.openmos...    education.ezpro...   
Home | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive 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

Navigation