Boost C++ 库

……世界上最受推崇、设计最精良的 C++ 库项目之一。 Herb SutterAndrei Alexandrescu, C++ Coding Standards

basic_writable_pipe - Boost C++ 函数库
PrevUpHomeNext

提供管道功能。

template<
    typename Executor = any_io_executor>
class basic_writable_pipe
类型

名称

描述

rebind_executor

将管道类型重新绑定到另一个执行器。

executor_type

与对象关联的执行器的类型。

lowest_layer_type

basic_writable_pipe 始终是最低层。

native_handle_type

管道的原生表示。

成员函数

名称

描述

assign

将现有原生管道分配给该管道。

async_write_some

启动异步写入。

basic_writable_pipe [构造函数]

构造一个不打开的 basic_writable_pipe。

构造一个现有的原生管道上的 basic_writable_pipe。

从另一个管道移动构造一个 basic_writable_pipe。

从另一个执行器类型的管道移动构造一个 basic_writable_pipe。

cancel

取消与该管道关联的所有异步操作。

close

关闭管道。

get_executor

获取与对象关联的执行器。

is_open

确定管道是否已打开。

lowest_layer

获取最低层的引用。

获取最低层的 const 引用。

native_handle

获取原生管道表示。

operator=

从另一个管道移动赋值一个 basic_writable_pipe。

从另一个执行器类型的管道移动赋值一个 basic_writable_pipe。

release

释放底层原生管道的所有权。

write_some

向管道写入一些数据。

~basic_writable_pipe [析构函数]

销毁管道。

basic_writable_pipe 类提供了管道功能的封装。

线程安全

独立 对象: 安全。

共享 对象: 不安全。

要求

头文件: boost/asio/basic_writable_pipe.hpp

便捷头文件: boost/asio.hpp


PrevUpHomeNext