aboutsummaryrefslogtreecommitdiff
path: root/lib/connect.c
AgeCommit message (Collapse)Author
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
2004-11-19David Phillips' FD_SETSIZE fixDaniel Stenberg
2004-11-15clean up start time and t_startsingle use so that redirect_time works properlyDaniel Stenberg
2004-11-02Paul Nolan fix to make libcurl build nicely on Windows CEDaniel Stenberg
2004-10-19CURLINFO_NUM_CONNECTS and moreDaniel Stenberg
2004-10-11SO_NOSIGPIPEDaniel Stenberg
2004-10-06removed tabs and trailing whitespace from sourceDaniel Stenberg
2004-09-30- Larry Campbell added CURLINFO_OS_ERRNO to curl_easy_getinfo() that allows anDaniel Stenberg
app to retrieve the errno variable after a (connect) failure. It will make sense to provide this for more failures in a more generic way, but let's start like this.
2004-09-19set an error message when connection failsDaniel Stenberg
2004-08-04Fixed multiple IP connects with the multi interface. This fix is influencedDaniel Stenberg
by Gisle Vanem's patch, only modified by me.
2004-07-04make sure the 3rd argument passed to bind() is a socklen_tDaniel Stenberg
2004-07-01Variable type cleanups to please the picky MIPSPro compiler.Daniel Stenberg
2004-06-30make the SSL connect use the same default connect timeout define as theDaniel Stenberg
generic connect uses
2004-06-29First attempt at making the multi interface work when connecting to a hostDaniel Stenberg
that resolves to multiple IP addresses.
2004-06-24only use sockaddr_in6 on ipv6-enabled hostsDaniel Stenberg
2004-06-24Source cleanups. The major one being that we now _always_ use a Curl_addrinfoDaniel Stenberg
linked list for name resolved data, even on hosts/systems with only IPv4 stacks as this simplifies a lot of code.
2004-06-23static functions are better not Curl_ prefixed to make their staticDaniel Stenberg
status more obvious
2004-06-23prevent a warningDaniel Stenberg
2004-06-22the hostname variable wasn't assigned and we no longer use itDaniel Stenberg
2004-06-22Moved the "About to connect() to" text to the place where the host name isDaniel Stenberg
actually known, as before this text lied when used in i.e FTP.
2004-06-10Gisle Vanem's improved verbose output and timeout handling when connecting toDaniel Stenberg
a host name that resolves to multiple IP addresses.
2004-06-08delete trailing whitespaceDaniel Stenberg
2004-05-13Gisle Vamem reintroduced the verifyconnect() call on windows as well, andDaniel Stenberg
we now use it to provide more info back on connect failures.
2004-05-11curl_global_init_mem() allows the memory functions to be replaced.Daniel Stenberg
memory.h is included everywhere for this.
2004-04-27Made host name and proxy name get stored in a 'struct hostname' and setDaniel Stenberg
all things up to work with encoded host names internally, as well as keeping 'display names' to show in debug messages. IDN resolves work for me now using ipv6, ipv4 and ares resolving. Even cookies on IDN sites seem to do right.
2004-04-26Made defines instead of plain numbers for the Curl_resolv() return code toDaniel Stenberg
make the code easier to read
2004-04-26added function headers and commentsDaniel Stenberg
2004-04-17Gisle made a failed connect output the reason for itDaniel Stenberg
2004-04-13Moved the 'tcp_nodelay' member to the proper 'UserDefined' struct within theDaniel Stenberg
sessionhandle to make the duphandle() function work as supposed. Also tried to start document functions the doxygen way (in the headers of the functions). Can't make it work though...
2004-03-31Andrés García fixed a warning in the ioctlsocket() usage.Daniel Stenberg