Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of Boost. Click here to view this page for the latest version.
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 1.12. File Types

Name

Description

file

file is a type alias to one of the following implementations, depending on what is available on the target platform.

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