client.h File Reference

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

Go to the source code of this file.

Data Structures

struct  _cp_client




typedef CPROPS_DLL struct


CPROPS_DLL void cp_client_init ()
CPROPS_DLL void cp_client_stop_all ()
CPROPS_DLL void cp_client_shutdown ()
CPROPS_DLL void cp_tcp_add_shutdown_callback (void(*cb)(void *), void *prm)
CPROPS_DLL cp_clientcp_client_create (char *host, int port)
CPROPS_DLL cp_clientcp_client_create_addr (struct sockaddr_in *)
CPROPS_DLL void cp_client_set_timeout (cp_client *client, int sec, int usec)
CPROPS_DLL void cp_client_set_retry (cp_client *client, int retry_count)
CPROPS_DLL void cp_client_set_owner (cp_client *client, void *owner)
CPROPS_DLL int cp_client_connect (cp_client *client)
CPROPS_DLL int cp_client_reopen (cp_client *client, char *host, int port)
CPROPS_DLL int cp_client_close (cp_client *client)
CPROPS_DLL void cp_client_destroy (cp_client *client)
CPROPS_DLL int cp_client_read (cp_client *client, char *buf, int len)
CPROPS_DLL int cp_client_read_string (cp_client *client, cp_string *str, int len)
CPROPS_DLL int cp_client_write (cp_client *client, char *buf, int len)
CPROPS_DLL int cp_client_write_string (cp_client *client, cp_string *str)

Detailed Description

definitions for client socket abstraction api

Definition in file client.h.

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