1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-22 08:08:50 -05:00

BSD-style lwIP TCP/IP stack support - followup

lwIP library initialization.
This commit is contained in:
Yang Tse 2011-08-07 08:45:57 +02:00
parent 1db023d3cb
commit 2ccffbb37e
3 changed files with 8 additions and 4 deletions

View File

@ -1,5 +1,5 @@
#ifndef __CONNECT_H #ifndef HEADER_CURL_CONNECT_H
#define __CONNECT_H #define HEADER_CURL_CONNECT_H
/*************************************************************************** /***************************************************************************
* _ _ ____ _ * _ _ ____ _
* Project ___| | | | _ \| | * Project ___| | | | _ \| |
@ -52,7 +52,7 @@ long Curl_timeleft(struct SessionHandle *data,
curl_socket_t Curl_getconnectinfo(struct SessionHandle *data, curl_socket_t Curl_getconnectinfo(struct SessionHandle *data,
struct connectdata **connp); struct connectdata **connp);
#ifdef WIN32 #ifdef USE_WINSOCK
/* When you run a program that uses the Windows Sockets API, you may /* When you run a program that uses the Windows Sockets API, you may
experience slow performance when you copy data to a TCP server. experience slow performance when you copy data to a TCP server.
@ -70,4 +70,5 @@ void Curl_sndbufset(curl_socket_t sockfd);
void Curl_updateconninfo(struct connectdata *conn, curl_socket_t sockfd); void Curl_updateconninfo(struct connectdata *conn, curl_socket_t sockfd);
void Curl_persistconninfo(struct connectdata *conn); void Curl_persistconninfo(struct connectdata *conn);
int Curl_closesocket(struct connectdata *conn, curl_socket_t sock); int Curl_closesocket(struct connectdata *conn, curl_socket_t sock);
#endif
#endif /* HEADER_CURL_CONNECT_H */

View File

@ -125,6 +125,8 @@ static CURLcode win32_init(void)
return CURLE_FAILED_INIT; return CURLE_FAILED_INIT;
} }
/* The Windows Sockets DLL is acceptable. Proceed. */ /* The Windows Sockets DLL is acceptable. Proceed. */
#elif defined(USE_LWIPSOCK)
lwip_init();
#endif #endif
#ifdef USE_WINDOWS_SSPI #ifdef USE_WINDOWS_SSPI

View File

@ -252,6 +252,7 @@
#endif #endif
#ifdef USE_LWIPSOCK #ifdef USE_LWIPSOCK
# include <lwip/init.h>
# include <lwip/sockets.h> # include <lwip/sockets.h>
# include <lwip/netdb.h> # include <lwip/netdb.h>
#endif #endif