Boost logo

Boost :

From: Vinnie Falco (vinnie.falco_at_[hidden])
Date: 2019-09-23 14:13:38

On Sun, Sep 22, 2019 at 5:00 PM JH via Boost <boost_at_[hidden]> wrote:
> socket.bind(boost::asio::ip::tcp::endpoint(boost::asio::ip::tcp::v4(), 12345));

You are using the right function, but you are passing a
default-constructed IPv4 address. Why not just pass the local IP
address you want to bind to (instead of, which is what a
default-constructed address gives you). Look at the type of the
endpoint parameter in the call to bind:



Boost list run by bdawes at, gregod at, cpdaniel at, john at