mirror of
https://github.com/curl/curl.git
synced 2026-08-25 07:33:36 +03:00
David McCreedy added CURLOPT_SOCKOPTFUNCTION and CURLOPT_SOCKOPTDATA to
allow applications to set their own socket options.
This commit is contained in:
parent
2ff609dd43
commit
5acadc9cd7
9 changed files with 104 additions and 56 deletions
13
lib/setup.h
13
lib/setup.h
|
|
@ -278,19 +278,6 @@ int fileno( FILE *stream);
|
|||
|
||||
#endif /* WIN32 */
|
||||
|
||||
#ifndef curl_socket_typedef
|
||||
/* now typedef our socket type */
|
||||
#ifdef WIN32
|
||||
typedef SOCKET curl_socket_t;
|
||||
#define CURL_SOCKET_BAD INVALID_SOCKET
|
||||
#else
|
||||
typedef int curl_socket_t;
|
||||
#define CURL_SOCKET_BAD -1
|
||||
#endif
|
||||
#define curl_socket_typedef
|
||||
#endif /* curl_socket_typedef */
|
||||
|
||||
|
||||
#if defined(WIN32) && !defined(__CYGWIN__) && !defined(USE_ARES) && \
|
||||
!defined(__LCC__) /* lcc-win32 doesn't have _beginthreadex() */
|
||||
#ifdef ENABLE_IPV6
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue