[/
    Copyright (c) 2016-2019 Vinnie Falco (vinnie dot falco at gmail dot com)

    Distributed under the Boost Software License, Version 1.0. (See accompanying
    file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)

    Official repository: https://github.com/boostorg/beast
]

[section 文件]

在实现服务器等网络算法时，经常需要与系统中的文件进行交互。Beast 定义了 __File__ 概念以及多种模型，用于实现与底层文件系统的跨平台交互：

[table 文件类型
[[名称][描述]]
[[
    [link beast.ref.boost__beast__file `file`]
][`file` 是一个类型别名，其具体类型取决于目标平台所支持的实现，可能为以下某种实现之一：
]]
[[
    [link beast.ref.boost__beast__file_stdio `file_stdio`]
][该 __File__ 实现使用 C++ 标准库的功能，这些功能通过包含 `<cstdio>` 头文件获得。
]]
[[
    [link beast.ref.boost__beast__file_win32 `file_win32`]
][该实现为 Win32 API 提供 __File__ 接口。必要时，它可以提供对原生文件句柄的低级别访问。
]]
[[
    [link beast.ref.boost__beast__file_posix `file_posix`]
][对于 POSIX 系统，该类提供合适的 __File__ 实现，它封装原生文件描述符，并在必要时提供该描述符。
]]
]

[endsect]
