Boost logo

Boost Users :

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.

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at