cp_socket

Section: cp_client (3)
Updated: MARCH 2006
Index Return to Main Contents
 

NAME

cp_client_read, cp_client_read_string - read from a tcp connection  

SYNOPSIS

#include <cprops/client.h>

int cp_client_read(cp_client *client, char *buf, int len);

int cp_client_read_string(cp_client *client, cp_string *str, int len);  

DESCRIPTION

cp_client_read reads up to len bytes from the connection associated with cp_client client into the buffer buf. cp_client_read_string reads up to len bytes into the cp_string str.  

RETURN VALUE

0 on end of file, -1 on error or the number of bytes successfully read.  

SEE ALSO

cp_client_write(3)


 

Index

NAME
SYNOPSIS
DESCRIPTION
RETURN VALUE
SEE ALSO

This document was created by man2html, using the manual pages.
Time: 14:33:55 GMT, March 14, 2006
SourceForge.net Logo