boost asio iostream - how to get local IP address

后端 未结 1 910
一向
一向 2021-01-18 09:02

Here is my problem: I\'m using boost::asio::ip::tcp::iostream to connect to server:

boost::asio::ip::tcp::iostream s(IP, \"1237\");

And now

相关标签:
1条回答
  • 2021-01-18 09:29

    Assuming Linux, Use getifaddrs(3) to get a list of interfaces for the local system.

    0 讨论(0)
提交回复
热议问题