aboutsummaryrefslogtreecommitdiff
path: root/lib/connect.c
AgeCommit message (Collapse)Author
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
2004-03-30typecast setsockopt()'s 4th argument to void * to make compilers complainDaniel Stenberg
less
2004-03-29netinet/tcp.h may require netinet/in.h to be include beforeDaniel Stenberg
2004-03-27Tor fixed a left-over from the ip argument to setnodelayDaniel Stenberg
2004-03-26check for netinet/tcp.h precense before actually including itDaniel Stenberg
2004-03-26removed the ip number from the notcpdelay functionDaniel Stenberg
2004-03-25only output one line about the nodelay even if it failsDaniel Stenberg
2004-03-25include the strerror.h file without curl_ prefixDaniel Stenberg
2004-03-25tcp-nodelay patch by Joe HalpinDaniel Stenberg
2004-03-24Gisle Vanem's fix to replace the bad use of strerror(). This introducesDaniel Stenberg
Curl_strerror() that attempts to be thread-safe _and_ works on Windows too!
2004-03-23switch() on the right variable!Daniel Stenberg
2004-03-23If localbind fails, provide a more portable error message.Daniel Stenberg
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.