Next:
List of Figures
Up:
CFHT Socket I/O
Previous:
CFHT Socket I/O
Contents
Contents
List of Figures
1. Overview
1.1 Messages
1.2 Library Components
1.3 Example: Environment Server and Client
2. Server-Side
2.1 sockserv_t* sockserv_create(const char* servname);
2.2 void sockserv_destroy(sockserv_t* sockserv)
2.3 int sockserv_run(sockserv_t* sockserv, int timeout_hundredths)
2.4 void sockserv_del_client(sockserv_t* sockserv, void* cinfo)
2.5 void client_recv_hook(void* cinfo, char* message_in_out)
2.6 void client_send_hook(void* cinfo, char* message_out)
2.7 void client_send_binary_hook(void* cinfo, char* data, int* bytes)
2.8 void* client_add_hook(unsigned char ip_addr[4])
2.9 void client_del_hook(void* cinfo, char* buffer)
3. Client-Side
3.1 sockclnt_t* sockclnt_create(const char* hostspec, int io_timeout_seconds)
3.2 disconnect_hook(void* userdata)
3.3 reconnect_hook(void* userdata)
3.4 void sockclnt_destroy(sockclnt_t* sc)
3.5 void sockclnt_send(sockclnt_t* sc, const char* message)
3.6 const char* sockclnt_recv(sockclnt_t* sc)
3.7 const char* sockclnt_check(sockclnt_t* sc)
A. Internal Server-Side Half-Duplex Buffer Mechanism - sbuf_t
Sidik Isani
2004-09-21