diff options
| author | Daniel Stenberg <daniel@haxx.se> | 2002-05-13 07:29:22 +0000 | 
|---|---|---|
| committer | Daniel Stenberg <daniel@haxx.se> | 2002-05-13 07:29:22 +0000 | 
| commit | 5215f6f654abce135142481f2220d7cc7e5a5464 (patch) | |
| tree | ae7800dba145c08d33452c34e742ed76aba8e1f1 /docs/examples | |
| parent | 1913b4eeed8fde06b544d883c3b599c71ca47f5f (diff) | |
we don't need win32sockets.c anymore, we support this internally
Diffstat (limited to 'docs/examples')
| -rw-r--r-- | docs/examples/Makefile.am | 2 | ||||
| -rw-r--r-- | docs/examples/win32sockets.c | 49 | 
2 files changed, 1 insertions, 50 deletions
diff --git a/docs/examples/Makefile.am b/docs/examples/Makefile.am index c0c82f3b5..78e1baef8 100644 --- a/docs/examples/Makefile.am +++ b/docs/examples/Makefile.am @@ -5,7 +5,7 @@  AUTOMAKE_OPTIONS = foreign no-dependencies  EXTRA_DIST = README curlgtk.c sepheaders.c simple.c postit2.c		\ -	     win32sockets.c persistant.c ftpget.c Makefile.example	\ +	     persistant.c ftpget.c Makefile.example			\  	     multithread.c getinmemory.c ftpupload.c httpput.c		\  	     simplessl.c ftpgetresp.c http-post.c post-callback.c	\  	     multi-app.c multi-double.c multi-single.c multi-post.c	\ diff --git a/docs/examples/win32sockets.c b/docs/examples/win32sockets.c deleted file mode 100644 index 5f791c8b5..000000000 --- a/docs/examples/win32sockets.c +++ /dev/null @@ -1,49 +0,0 @@ - -/* - * Note: This is only required if you use curl 7.8 or lower, later  - * versions provide an option to curl_global_init() that does the - * win32 initialization for you. - */ - -/* - * These are example functions doing socket init that Windows - * require. If you don't use windows, you can safely ignore this crap. - */ - -#include <windows.h> - -void win32_cleanup(void) -{ -  WSACleanup(); -} - -int win32_init(void) -{ -  WORD wVersionRequested;   -  WSADATA wsaData;  -  int err;  -  wVersionRequested = MAKEWORD(1, 1);  -     -  err = WSAStartup(wVersionRequested, &wsaData);  -     -  if (err != 0)  -    /* Tell the user that we couldn't find a useable */  -    /* winsock.dll.     */  -    return 1; -     -  /* Confirm that the Windows Sockets DLL supports 1.1.*/  -  /* Note that if the DLL supports versions greater */  -  /* than 1.1 in addition to 1.1, it will still return */  -  /* 1.1 in wVersion since that is the version we */  -  /* requested. */  -     -  if ( LOBYTE( wsaData.wVersion ) != 1 ||  -       HIBYTE( wsaData.wVersion ) != 1 ) {  -    /* Tell the user that we couldn't find a useable */  - -    /* winsock.dll. */  -    WSACleanup();  -    return 1;  -  } -  return 0; /* 0 is ok */ -}  | 
