Boost C++ 库

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

basic_stream_socket::assign - Boost C++ 函数库
PrevUpHomeNext

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

void assign(
    const protocol_type & protocol,
    const native_handle_type & native_socket);
  » more...

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

PrevUpHomeNext