...世界上最受推崇和设计最精良的 C++ 库项目之一。 — Herb Sutter 和 Andrei Alexandrescu, C++ 编码规范
...世界上最受推崇和设计最精良的 C++ 库项目之一。
继承自 basic_socket。
获取套接字的本地端点。
endpoint_type local_endpoint() const;
此函数用于获取套接字的本地绑定端点。
表示套接字本地端点的对象。
失败时抛出。
boost::asio::ip::tcp::socket socket(my_context); ... boost::asio::ip::tcp::endpoint endpoint = socket.local_endpoint();