Changeset 21 in libcf for trunk/include/cf_socket.h


Ignore:
Timestamp:
02/01/13 17:46:09 (11 years ago)
Author:
cheese
Message:

#1 add test code for multi-threading, socket and multi-threaded logging

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/cf_socket.h

    r6 r21  
    77#include "cf_base.h"
    88#include <stddef.h>
     9
     10#ifdef _WIN32
     11# include <WinSock2.h>
     12#else
     13# include <netinet/in.h>
     14# include <sys/socket.h>
     15# include <arpa/inet.h>
     16# include <netdb.h>
     17# include <unistd.h>
     18#endif
    919
    1020#define CF_ERROR_SOCKET_INITIALIZE      CF_ERROR_SOCKET - 1
     
    7181
    7282CF_EXPORT int
    73 CF_Socket_Accept        (const int  sock,
    74                          void       * address /* struct sockaddr_in * */);
     83CF_Socket_Accept        (const int          sock,
     84                         struct sockaddr_in * address);
    7585
    7686CF_EXPORT int
Note: See TracChangeset for help on using the changeset viewer.