cp_client_read(3)

cp_socket(3) cp_client cp_socket(3)

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)

MARCH 2006 libcprops