12 Apr
2017
12 Apr
'17
2:34 a.m.
On 12/04/2017 12:45, jupiter via Boost-users wrote:
Thanks Bjorn and Gavin, change localhost to an IPv4 address fixed that problem, so how can we use the domain name rather than the IPv4 dot address?
As Bjorn suggested, you need to call resolve or async_resolve on a tcp::resolver or udp::resolver. There are other examples that demonstrate this.