Boost C++ 库

...世界上最受推崇和设计精良的 C++ 库项目之一。 Herb SutterAndrei Alexandrescu,《C++ 编码规范

basic_socket::assign (第 2 个重载,共 2 个) - Boost C++ 函数库
PrevUpHomeNext

将现有本机套接字分配给套接字。

void assign(
    const protocol_type & protocol,
    const native_handle_type & native_socket,
    boost::system::error_code & ec);

PrevUpHomeNext