cp_socket

Section: cp_socket (3)
Updated: OCTOBER 2005
Index Return to Main Contents
 

NAME

cp_connection_descriptor - connection descriptor for cp_socket connections  

SYNOPSIS

#include <cprops/socket.h>

cp_socket *cp_connection_descriptor_get_socket(
           cp_connection_descriptor descriptor);

struct sockaddr_in *cp_connection_descriptor_get_addr(
           cp_connection_descriptor descriptor);

int cp_connection_descriptor_get_fd(
           cp_connection_descriptor descriptor);  

DESCRIPTION

Connections made by a cp_socket created with CPSOCKET_STRATEGY_THREADPOOL call a user defined thread function with the connection information wrapped in a cp_connection_descriptor struct.

cp_connection_descriptor_get_socket returns a pointer to the originating cp_socket;

cp_connection_descriptor_get_addr returns a pointer to a struct sockaddr_in describing the address the connection was made from; and

cp_connection_descriptor_get_fd returns to file descriptor number for this connection.  

SEE ALSO

cp_socket(3)


 

Index

NAME
SYNOPSIS
DESCRIPTION
SEE ALSO

This document was created by man2html, using the manual pages.
Time: 20:30:45 GMT, January 02, 2006
SourceForge
.net Logo