aboutsummaryrefslogtreecommitdiff
path: root/lib/connect.c
AgeCommit message (Collapse)Author
2007-06-30minor patches to enable building for NetWare CLIB.Gunter Knauf
sent by Dmitry Mityugov.
2007-04-22Avoid an unnecessary call to gettimeofday() whenYang Tse
using custom timeout values.
2007-04-19fix comment and line spacingYang Tse
2007-04-16- Robert Iakobashvil added curl_multi_socket_action() to libcurl, which is aDaniel Stenberg
function that deprecates the curl_multi_socket() function. Using the new function the application tell libcurl what action that was found in the socket that it passes in. This gives a significant performance boost as it allows libcurl to avoid a call to poll()/select() for every call to curl_multi_socket*().
2007-03-26Internal function Curl_select() renamed to Curl_socket_ready()Yang Tse
2007-03-13Use Curl_inet_pton() instead of inet_pton().Gisle Vanem
2007-03-11fix compiler warning: unused variableYang Tse
2007-03-09- Robert Iakobashvili fixed CURLOPT_INTERFACE for IPv6.Daniel Stenberg
2007-02-26Removed inclusion of <sys/types.h> and <sys/stat.h> in .c-filesGisle Vanem
since they're already included through "setup.h".
2007-02-22Check for stdbool.h at configuration stage, and include it if available.Yang Tse
Check for lowercase 'bool' type at configuration stage. If not available provide a suitable replacement with a type definition of 'unsigned char' in setup_once.h Move definitions of TRUE and FALSE to setup_once.h
2007-02-21curlassert macro replaced with DEBUGASSERT macro defined in setup_once.hYang Tse
2007-02-17Move portable error number symbolic name definitions to setup_once.hYang Tse
2007-02-16use macros ERRNO, SET_ERRNO(), SOCKERRNO and SET_SOCKERRNO() for errno handlingYang Tse
2007-02-05- Michael Wallner provided a patch that adds support for CURLOPT_TIMEOUT_MSDaniel Stenberg
and CURLOPT_CONNECTTIMEOUT_MS that, as their names should hint, do the timeouts with millisecond resolution instead. The only restriction to that is the alarm() (sometimes) used to abort name resolves as that uses full seconds. I fixed the FTP response timeout part of the patch. Internally we now count and keep the timeouts in milliseconds but it also means we multiply set timeouts with 1000. The effect of this is that no timeout can be set to more than 2^31 milliseconds (on 32 bit systems), which equals 24.86 days. We probably couldn't before either since the code did *1000 on the timeout values on several places already.
2006-12-22- David McCreedy fixed a bad call to getsockname() that wrongly used a size_tDaniel Stenberg
variable to point to when it should be a socklen_t.
2006-10-18Check for USE_WINSOCK instead of WIN32 where the check was doneYang Tse
to verify winsock API availability.
2006-08-30Removed "#ifndef__WATCOMC__". Use "#ifdef HAVE_SYS_TIME_H" instead.Gisle Vanem
2006-08-29Watcom lacks <sys/time.h>.Gisle Vanem
2006-08-29David McCreedy added CURLOPT_SOCKOPTFUNCTION and CURLOPT_SOCKOPTDATA toDaniel Stenberg
allow applications to set their own socket options.
2006-07-21Constify some arguments in Curl_connecthost() and singleipconnect().Gisle Vanem
2006-07-17"*connected" must be set to FALSE if trynextip() fails.Yang Tse
2006-07-14Change the ai_addrlen type of struct addrinfo from size_t to socklen_t, per ↵Yang Tse
RFC 3493.
2006-07-11Socket must be set to CURL_SOCKET_BAD after closing it.Yang Tse
2006-05-04Roland Blom filed bug report #1481217Daniel Stenberg
(http://curl.haxx.se/bug/view.cgi?id=1481217), with follow-ups by Michele Bini and David Byron. libcurl previously wrongly used GetLastError() on windows to get error details after socket-related function calls, when it really should use WSAGetLastError() instead. When changing to this, the former function Curl_ourerrno() is now instead called Curl_sockerrno() as it is necessary to only use it to get errno from socket-related functions as otherwise it won't work as intended on Windows.
2006-04-21Ale Vesely fixed CURLOPT_INTERFACE when using a hostnameDaniel Stenberg
2006-04-18avoid a warning about declaring a variable that shadows an earlier declaredDaniel Stenberg
one
2006-04-10First curl_multi_socket() commit. Should primarily be considered as an internalDaniel Stenberg
code rearrange to fit the future better.
2006-02-26Small fix.Gisle Vanem
2006-02-26Use getprotobyname() to retrieve protocol number for TCPGisle Vanem
(sorry, I don't know how to add this to the configure process).
2006-01-30Squelch the "warning: 'port' might be used uninitialized in this function".Gisle Vanem
(occurs w/o ENABLE_IPV6).
2006-01-30Added CURLOPT_LOCALPORT and CURLOPT_LOCALPORTRANGE to libcurl. Set with theDaniel Stenberg
curl tool with --local-port. Plain and simply set the range of ports to bind the local end of connections to. Implemented on to popular demand. Not extensively tested. Please let me know how it works.
2005-12-18Cleanup windows header includes. Where aplicable, inclusion ofYang Tse
windows.h winsock.h winsock2.h ws2tcpip.h is done in setup.h
2005-12-13Fixed some compiler warnings on lcc.Dan Fandrich
2005-10-25close the existing socket when trying next IP, as otherwise we leak one!Daniel Stenberg
bug #1326306
2005-09-16keep 'socktype' in the connectdata struct and make sure we use that for allDaniel Stenberg
protocol sockets even if the resolved address may say otherwise
2005-09-02John Kelly added TFTP support to libcurl. A bunch of new error codes wasDaniel Stenberg
added. TODO: add them to docs. add TFTP server to test suite. add TFTP to list of protocols whereever those are mentioned.
2005-07-21Fixed some typos in output messages.Dan Fandrich
2005-05-14fix warning about redefined symbolDaniel Stenberg
2005-05-14Change for systems with >1 ways of setting (non-)blockingGisle Vanem
mode. (djgpp/Watt-32 has 3 ways). Should rewrite this using "#elif ..", but maybe there is still broken cpp around?
2005-05-02improved failf() error messagesDaniel Stenberg
2005-04-30singleipconnect() returns a socket descriptor, not a CURLcode (but perhapsDaniel Stenberg
we should make it do that...)
2005-04-26Cory Nelson's work on nuking compiler warnings when building on x64 withDaniel Stenberg
VS2005.
2005-03-14silence compiler warnings for mingw win32 builds --enable-debugDaniel Stenberg
2005-02-17close the socket properly when returning error due to failing localbindDaniel Stenberg
Bug report #1124588 by David
2005-01-29include "url.h" for the Curl_safefree() protoDaniel Stenberg
2005-01-29conn->ip_addr MUST NOT be used on re-used connectionsDaniel Stenberg
2005-01-28Connect failures with the multi interface was often returned as "connect()Daniel Stenberg
timed out" even though the reason was different. Fixed this problem by not setting this timeout to zero when using multi.
2004-12-13Set 'data->state.os_errno = error' in some places.Gisle Vanem
Needed elsewhere too?
2004-12-06Gisle Vanem's fix for better info messages when failing to connect usingDaniel Stenberg
the multi interface
2004-11-22Curl_select's timeout arg is an intDaniel Stenberg