Beast Logo

PrevUpHomeNext

Files

Often when implementing network algorithms such as servers, it is necessary to interact with files on the system. Beast defines the File concept and several models to facilitate cross-platform interaction with the underlying filesystem:

Table 8. File Types

Name

Description

file_stdio

This implementation of File uses the C++ standard library facilities obtained by including <cstdio>.

file_win32

This implements a File for the Win32 API. It provides low level access to the native file handle when necessary.

file_posix

For POSIX systems, this class provides a suitable implementation of File which wraps the native file descriptor and provides it if necessary.



PrevUpHomeNext