Main Page   Class Hierarchy   Alphabetical List   Data Structures   File List   Data Fields   Globals  

recvn.h

Go to the documentation of this file.
00001 /************************************************************************
00002 * File: recvn.h
00003 * Purpose: Provides a header file for the recvn function from
00004 * the book Advanced Programming in the UNIX Environment by Richard Stevens.
00005 * The writen function calls the recv function repeatedly until n bytes
00006 * have been recv from the file descriptor.
00007 *************************************************************************/
00008 
00009 #ifndef RECVN_H
00010 #define RECVN_H
00011 
00012 #include "rcs_defs.hh"          /* RCS_EXPORT */
00013 
00014 #ifdef __cplusplus
00015 extern "C"
00016 {
00017 #endif
00018 
00019 #ifndef UNDER_CE
00020 #include <stddef.h>             /* size_t */
00021 #else
00022 #include <stdlib.h>             /* size_t */
00023 #endif
00024 
00025   int RCS_EXPORT recvn (int fd, void *vptr, int n, int flags, double timeout,
00026                         int *bytes_read_ptr);
00027   extern int recvn_timedout;
00028   extern int print_recvn_timeout_errors;
00029 #ifdef __cplusplus
00030 };
00031 #endif
00032 
00033 
00034 #endif /* RECVN_H */

Generated on Sun Dec 2 15:56:51 2001 for rcslib by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001