Boost logo

Boost Users :

Subject: Re: [Boost-users] Question about Protocols and boost::asio::ip::tcp::iostream
From: Boris (boriss_at_[hidden])
Date: 2008-10-30 07:15:16


On Tue, 28 Oct 2008 20:17:05 +0100, Charles Milutinovic <kssarh_at_[hidden]>
wrote:

> [...]I have a question about its usage though. Every example I've seen
> looks
> something like tcp::iostream s("server", "protocol"). So far I've seen
> "http" and "daytime" as protocols.
>
> I am wondering exactly where these constants are defined. Also, for my

Asio uses an OS-specific function which is typically called getaddrinfo()
to translate a hostname and a service name to an address. That said I
recommend you to check the documentation of getaddrinfo().

Boris


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net