aboutsummaryrefslogtreecommitdiff
path: root/lib/connect.c
AgeCommit message (Collapse)Author
2004-03-17Günter Knauf's NetWare changes.Daniel Stenberg
2004-03-11Gisle Vanem's fixes to use CURL_SOCKET_BAD more instead of -1 for sockets.Daniel Stenberg
2004-03-09Use curl_socket_t instead of int for holding sockets. The typedefs andDaniel Stenberg
defines are in setup.h.
2004-03-08waitconnect() takes the timeout argument as a longDaniel Stenberg
2004-03-04Andrés García's patch to prevent warnings while compiling with mingw, mainlyDaniel Stenberg
because it is now possible to have both WIN32 and HAVE_CONFIG_H defined.
2004-02-15Use the was_iface variable when binding a socket locally, even if noDaniel Stenberg
SO_BINDTODEVICE is present, to prevent compiler warnings about the variable
2004-02-13Ben Greear's SO_BINDTODEVICE patch that binds to a network interface "evenDaniel Stenberg
more" when the previous approach. Known to work on Linux, possibly on other platforms as well.
2004-02-09Oops. I broke the flow with the previous commit.Daniel Stenberg
2004-02-09some annoying compilers warn about "(void)foo;" lines so we avoid themDaniel Stenberg
2004-01-30only do the verifyconnect() clear magic on mpeixDaniel Stenberg
2004-01-29added verifyconnect proto and use it correctly in the waitconnect functionDaniel Stenberg
2004-01-291. changed order of two include files to build fine on MPE/iXDaniel Stenberg
2. now reads the socket error before check connect status, also to make us run fine on MPE/iX
2004-01-29Dan Fandrich's cleanup patch to make pedantic compiler options cause lessDaniel Stenberg
warnings. Minor edits by me.
2004-01-15added missing parenthesisDaniel Stenberg
2004-01-14rearranged the connect() call so that there's no interleaved #ifdef, to makeDaniel Stenberg
it compiler better on amigaos
2004-01-07updated year in the copyright stringDaniel Stenberg
2003-11-13Peter Sylvester found a flaw in the connect code for ipv6-enabled hosts.Daniel Stenberg
I guess it seldomly happens on linux and that's why it wasn't found before. He used Solaris to notice it. I took the opportunity to rewrite the Curl_connecthost() slightly to feature less duplicate code in the two different versions (ipv4/ipv6).
2003-10-18don't shadow 'socket'Daniel Stenberg
2003-10-15the previous fix left this compiler errorDaniel Stenberg
2003-10-15Avoid doing getsockopt() on Windows to verify connects. It seems that thisDaniel Stenberg
hogs Windows machines when libcurl is being used multi-threaded (with > ~50 threads). Andrew Fuller helped us verify and test this. According to a MSDN web page on connect(), it returns 0 when the connect is done and thus we don't need the getsockopt() call anyway on Windows.
2003-10-14Gisle Vanem's IPv6-on-Windows patch applied!Daniel Stenberg
2003-10-08- Frank Ticheler provided a patch that fixes how libcurl connects to multipleDaniel Stenberg
addresses, if one of them fails (ipv4-code).
2003-10-05New code for BeOS-style non-blocking sockets, provided by Shard andDaniel Stenberg
Jeremy Friesner.
2003-08-11bindlocal works for Windows!Daniel Stenberg
2003-08-05ares awareness/usage/support added. If configure --enable-ares is used, weDaniel Stenberg
build libcurl to use ares for asynch name resolves.
2003-06-26CURLDEBUG instead of MALLOCDEBUGDaniel Stenberg
2003-05-13Setup and use CURL_INADDR_NONE all over instead of INADDR_NONE. We setupDaniel Stenberg
the define accordingly in the hostip.h header to work nicely all over.
2003-05-12before checking for network interfaces using if2ip(), check that the givenDaniel Stenberg
name isn't an ip address
2003-05-01ourerrno became Curl_ourerrno() and is now available to all libcurlDaniel Stenberg
2003-03-11Martin C. Martin's fix to produce an error message in case of failureDaniel Stenberg
in the Curl_is_connected() function.
2003-02-14Fix Curl_is_connected() even more to deal with waitconnect() return codesDaniel Stenberg
even better (also based on input from Martin).
2003-02-14geterrno() renamed to ourerrno() to prevent the name clash that occurred inDaniel Stenberg
AIX 3.2.5 and possibly other OSF-like system headers.
2003-02-14Martin C. Martin's fix for multi-interface connects to non-listening ports.Daniel Stenberg
2003-02-04added the sharing of DNS cacheJean-Philippe Barette-LaPierre
2003-01-23Duncan Wilcox reported a crash with --interface on FreeBSD when ipv6-enabledDaniel Stenberg
and this has been verified to correct the problem.
2003-01-16copyright year update in the source headerDaniel Stenberg
2003-01-09This fixed yet another connect problem with the multi interface and ipv4Daniel Stenberg
stack. Kjetil Jacobsen reported and verified the fix.
2002-12-17Removed weird special multi interface condition that caused bug reportDaniel Stenberg
#651464.
2002-12-13conn->bits.tcpconnect now keeps track of if this connection is connectedDaniel Stenberg
or not
2002-12-13make a little work-around for file:// in _is_connected() and voila, now theDaniel Stenberg
multi interface works with file:// URLs fine (previously it crashed). This won't make it work on Windows though...
2002-11-11unlock dns cache entries with a function call instead of a variable fiddleDaniel Stenberg
2002-11-05ipv4-fixes for the new Curl_dns_entry struct and Curl_resolv() protoDaniel Stenberg
2002-11-05Curl_resolv() now returns a different struct, and it contains a referenceDaniel Stenberg
counter so that the caller needs to decrease that counter when done with the returned data. If compiled with MALLOCDEBUG I've added some extra checking that the counter is decreased before a handle is closed etc.
2002-10-12return error properly when a non-blocking connect fails using the multiDaniel Stenberg
interface
2002-09-11Lukasz Czekierda correctly pointed out that curl used a bad Host: headerDaniel Stenberg
when talking to a IPv6-server using IPv6 IP address only.
2002-09-03updated source code boilerplate/headerDaniel Stenberg
2002-08-26Andrew Francis removed the need for/use of MSVC pragmasDaniel Stenberg
2002-08-12fixed a Curl_connecthost() bug, we should default to set connected to falseDaniel Stenberg
2002-08-12Initial fix to make the multi interface return control while waiting forDaniel Stenberg
the initial connect to "come through". This should work fine for connect and for FTP-PASV connects. Needs massive testing.
2002-06-12added a connect failure error message that might get empty otherwiseDaniel Stenberg