man3tcp/fetchTCPbuf

Table of Contents

Name

fetchTCPbuf - read bytes from a socket

Description

fetchTCPbuf reads bytes from a socket until the number of bytes requested is reached.

This function is part of libtcp.

Syntax

int fetchTCPbuf(
   int t,

   char *buf,

   int S

   );

Arguments

t

the socket to read from.

buf

the buffer to place data in

S

the number of chars to read before quitting.

Returns

the number of bytes read is returned for success.
ERRconn is returned for problems.

See Also

libtcp(3tcp)

Manual page revision

$Id: fetchTCPbuf.3,v 1.1 2002/04/07 19:50:52 kitchen Exp $


Table of Contents