cp_client_write(3)

cp_socket(3) cp_client cp_socket(3)

NAME

cp_client_write, cp_client_write_string - write from a tcp connection

SYNOPSIS

#include <cprops/client.h>

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

int cp_client_write_string(cp_client *client, cp_string *str);

DESCRIPTION

cp_client_write attempts to write len bytes to the connection associated with the cp_client client from the buffer buf. cp_client_write_string attempts to write the cp_string str to the client.

RETURN VALUE

the number of bytes successfully written on success or -1 on error.

SEE ALSO

cp_client_read(3)

MARCH 2006 libcprops