curl-library
Re: "On connected" callback function
From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Sun, 29 Mar 2009 20:36:30 -0600
Date: Sun, 29 Mar 2009 20:36:30 -0600
On Sun, Mar 29, 2009 at 03:47:14AM -0700, thhk nhkr wrote:
> I am using the curl-library for an HTTP client that connects and send requests
> to remote HTTP servers.
> I need to implement a mechanism that notifies me when a connection was
> established..
> Upon connection establishment I need to send a Login request to the remote
> server, and only after this request was successfully ended I will be able to
> send regular requests to the server.
>
> I couldn't find an API that let me register a callback function that will be
> called after a connection was established, is there one?
You can probably use the CURLOPT_OPENSOCKETFUNCTION for this purpose and just
open the socket yourself.
>>> Dan
-- http://www.MoveAnnouncer.com The web change of address service Let webmasters know that your web site has movedReceived on 2009-03-30