Main Page | Modules | Alphabetical List | Data Structures | File List | Data Fields | Globals

socket.h File Reference

#include "common.h"
#include "config.h"
#include "hashlist.h"
#include "vector.h"
#include "thread.h"

Go to the source code of this file.

Data Structures

struct  _cp_socket
struct  _cp_connection_descriptor

Defines

#define CPSOCKET_DEFAULT_BACKLOG   50
#define CPSOCKET_DEFAULT_DELAY_SEC   1
#define CPSOCKET_DEFAULT_DELAY_USEC   0
#define CPSOCKET_THREADPOOL_DEFAULT_SIZE_MIN   5
#define CPSOCKET_THREADPOOL_DEFAULT_SIZE_MAX   50
#define cp_connection_descriptor_get_socket(cd)   ((cd)->sock)
#define cp_connection_descriptor_get_addr(cd)   ((cd)->addr)
#define cp_connection_descriptor_get_fd(cd)   ((cd)->fd)

Typedefs

typedef CPROPS_DLL enum { ... }  cp_socket_strategy
typedef void *(* cp_socket_thread_function )(void *)
typedef int(* cp_socket_callback )(struct _cp_socket *, int fd)
typedef CPROPS_DLL struct
_cp_socket 
cp_socket
typedef CPROPS_DLL struct
_cp_connection_descriptor 
cp_connection_descriptor

Enumerations

enum  { CPSOCKET_STRATEGY_CALLBACK, CPSOCKET_STRATEGY_THREADPOOL }


Detailed Description

definitions for socket abstraction api

Definition in file socket.h.


Generated on Sat Dec 1 10:25:30 2007 for cprops by  doxygen 1.3.9.1