socket.c File Reference

#include "common.h"
#include "log.h"
#include "util.h"
#include "hashtable.h"
#include "vector.h"
#include "thread.h"
#include "socket.h"
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <signal.h>
#include <fcntl.h>
#include <errno.h>

Go to the source code of this file.

Functions

void cp_socket_init ()
void cp_socket_stop (cp_socket *sock)
CPROPS_DLL void cp_tcp_add_shutdown_callback (void(*cb)(void *), void *prm)
void cp_socket_stop_all ()
void cp_socket_shutdown ()
int setnonblocking (int sock)
cp_connection_descriptorcp_connection_descriptor_create (cp_socket *sock, struct sockaddr_in *addr, int fd)
void cp_connection_descriptor_destroy (cp_connection_descriptor *conn_desc)
cp_socketcp_socket_create (int port, cp_socket_strategy strategy, void *fn)
void cp_socket_set_backlog (cp_socket *socket, int backlog)
void cp_socket_set_delay (cp_socket *socket, struct timeval delay)
void cp_socket_set_delay_sec (cp_socket *socket, long sec)
void cp_socket_set_delay_usec (cp_socket *socket, long usec)
void cp_socket_set_poolsize_min (cp_socket *socket, int min)
void cp_socket_set_poolsize_max (cp_socket *socket, int max)
void cp_socket_set_owner (cp_socket *socket, void *owner)
void * cp_socket_add_shutdown_callback (cp_socket *sock, void(*cb)(void *), void *prm)
void cp_socket_delete (cp_socket *sock)
int cp_socket_listen (cp_socket *sock)
int cp_socket_select_callback_impl (cp_socket *sock)
int cp_socket_select_threadpool_impl (cp_socket *sock)
int cp_socket_select (cp_socket *sock)
int cp_socket_connection_close (cp_socket *sock, int fd)
int cp_connection_descrpitor_read (cp_connection_descriptor *desc, char *buf, int len)
int cp_connection_descriptor_write (cp_connection_descriptor *desc, char *buf, int len)

Variables

volatile int stopping_all = 0


Detailed Description

socket framework implementation

Definition in file socket.c.


Generated on Mon Dec 5 23:00:22 2011 for cprops by  doxygen 1.4.7