cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Publish-Subscribe Support

From: Jeff Pohlmeyer <yetanothergeek_at_gmail.com>
Date: Mon, 22 Oct 2007 22:28:55 -0500

> > What I wish to implement using your API is the ability to receive
> > asynchronously data being published from a remote host running
> > a program built and maintained by another company.
>
> Also is there a way to tell libcurl to listen on a specific port for
> incoming HTTP traffic?

> libcurl is not a server and cannot listen for HTTP traffic. HTTP clients
> are not servers at the same time, they must always request data.

Like Matt says, libcurl can't act as a server, but it could be a fine choice
for your client-side requirements. If you just need a basic HTTP server
library, you might look at libevent, which can act as an http server and
also integrates nicely with libcurl's multi_socket() API.

  http://monkey.org/~provos/libevent/

 - Jeff
Received on 2007-10-23