curl-library
RE: Winsock and CURL
Date: Thu, 7 Sep 2006 15:09:15 -0700
Hi,
The reason for my question is that on Win CE we are setting the local
port. We have only 2 ports available to us. So we want to keep a port
open all thru the connection. If Winsock releases a socket, reconnecting
on the same local port has a 3 minute delay that we want to avoid. So we
basically want to say we have connected here at the start of the session
and keep that going until we exit the application. If I use just one
CURL structure and init it at the start and do the cleanup at the end -
will I be using just one socket all thru - since we will specify the
local port using the CURLOPTs?
Thanks,
Sonia.
-----Original Message-----
From: curl-library-bounces_at_cool.haxx.se
[mailto:curl-library-bounces_at_cool.haxx.se] On Behalf Of Daniel Stenberg
Sent: Thursday, September 07, 2006 2:19 PM
To: libcurl development
Subject: Re: Winsock and CURL
On Thu, 7 Sep 2006, Sonia Subramanian wrote:
> Is there a new socket created with every init or is it managed
internally.
> Is there a way for the user to be able to control the sockets getting
> created?
Sockets are created and when needed. And closed when no longer needed.
No, there's no way for users to control that. Why would you want that?
And if
if would work, how would you suggest it would be done?
-- Commercial curl and libcurl Technical Support: http://haxx.se/curl.htmlReceived on 2006-09-08