Main Page | Modules | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

platform.h File Reference

#include <sys/socket.h>
#include <netinet/in.h>
#include <errno.h>
#include <netdb.h>
#include <arpa/inet.h>
#include <unistd.h>
#include <sys/ioctl.h>
#include <pthread.h>

Go to the source code of this file.

Defines

#define INITNETLIB
#define _inline   inline
#define INVALID_SOCKET   -1
#define SOCKET_ERROR   -1
#define closesocket   close
#define ioctlsocket   ioctl
#define _strnicmp   strncasecmp
#define wsprintf   sprintf
#define MAX_COMPUTERNAME_LENGTH   1024
#define MAX_PATH   1024
#define THREADHANDLE   pthread_t
#define CONDVAR   pthread_cond_t
#define CONDVARPTR   pthread_cond_t*
#define THREADRETVALUE   void*
#define WSAGetLastError   GetLastError
#define ZeroMemory   bzero
#define TRUE   true
#define FALSE   false
#define WAIT_OBJECT_0   0
#define WAIT_TIMEOUT   (DWORD)-1

Typedefs

typedef int SOCKET
typedef pid_t HMODULE
typedef unsigned long DWORD
typedef unsigned char UCHAR
typedef unsigned char BYTE
typedef unsigned short int WORD
typedef char * LPSTR
typedef const char * LPCSTR
typedef void * LPVOID
typedef pthread_mutex_t CRITICAL_SECTION
typedef bool BOOL
typedef WaitableObjectWaitableObjectPtr

Functions

int GetLastError ()
void Sleep (int millis)
DWORD WaitForMultipleObjects (DWORD howmany, const WaitableObjectPtr *array, BOOL WaitForAll, DWORD dwMillis)
DWORD WaitForSingleObject (const WaitableObject *object, DWORD dwMills)


Define Documentation

#define _inline   inline
 

#define _strnicmp   strncasecmp
 

#define closesocket   close
 

#define CONDVAR   pthread_cond_t
 

#define CONDVARPTR   pthread_cond_t*
 

#define FALSE   false
 

#define INITNETLIB
 

#define INVALID_SOCKET   -1
 

#define ioctlsocket   ioctl
 

#define MAX_COMPUTERNAME_LENGTH   1024
 

#define MAX_PATH   1024
 

#define SOCKET_ERROR   -1
 

#define THREADHANDLE   pthread_t
 

#define THREADRETVALUE   void*
 

#define TRUE   true
 

#define WAIT_OBJECT_0   0
 

#define WAIT_TIMEOUT   (DWORD)-1
 

#define WSAGetLastError   GetLastError
 

#define wsprintf   sprintf
 

#define ZeroMemory   bzero
 


Typedef Documentation

typedef bool BOOL
 

typedef unsigned char BYTE
 

typedef pthread_mutex_t CRITICAL_SECTION
 

typedef unsigned long DWORD
 

typedef pid_t HMODULE
 

typedef const char* LPCSTR
 

typedef char* LPSTR
 

typedef void* LPVOID
 

typedef int SOCKET
 

typedef unsigned char UCHAR
 

typedef WaitableObject* WaitableObjectPtr
 

typedef unsigned short int WORD
 


Function Documentation

int GetLastError  )  [inline]
 

void Sleep int  millis  )  [inline]
 

DWORD WaitForMultipleObjects DWORD  howmany,
const WaitableObjectPtr array,
BOOL  WaitForAll,
DWORD  dwMillis
 

DWORD WaitForSingleObject const WaitableObject object,
DWORD  dwMills
 


Generated on Thu Jun 16 00:13:14 2005 for Netlib for Abuse! by  doxygen 1.4.3