Boost C++ 库

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

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