$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
Subject: Re: [Boost-users] udp::endpoint listen_endpoint invalid argument
From: Gavin Lambert (gavinl_at_[hidden])
Date: 2017-04-12 02:34:39
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.