~mordred/libmemcached/fix850399

« back to all changes in this revision

Viewing changes to clients/utilities.h

  • Committer: Trond Norbye
  • Date: 2010-07-27 22:38:51 UTC
  • mto: This revision was merged to the branch mainline in revision 887.
  • Revision ID: trond.norbye@gmail.com-20100727223851-4g3jtln2ubxh7phs
Initial support for Windows

In order to support Windows without adding a lot of #ifdefs all over
the code I decided to move all the inclusions of platform-specific
network headers into a separate include file. Windows use separate
subsystem for sockets (WinSock), and it is almost compatible with how
it works on Unix except from:

* The socket handle is a SOCKET and not a typical filedescriptor.
* It should be closed with closesocket() and not close().
* It does not set the global errno variable, but one should call
  WSAGetLastError() instead.

Show diffs side-by-side

added added

removed removed

Lines of Context:
51
51
void process_hash_option(memcached_st *memc, char *opt_hash);
52
52
bool initialize_sasl(memcached_st *memc, char *user, char *password);
53
53
void shutdown_sasl(void);
 
54
void initialize_sockets(void);