Boost logo

Boost :

From: jk_at_[hidden]
Date: 2002-03-01 02:11:31


27 Feb 2002 23:51:25 +0300 Hamish Mackenzie wrote:
>I think a general purpose address class should store the arguments
>required to look up an address using "getaddrinfo". This means
>1) It sould store a service name instead of the port.
>2) It should also contain an addrinfo containing the hints.
>
>The getaddrinfo could then be wrapped in two classes address_info_list
>and address_info.

Not all types of addresses are network addresses with port numbers,
service names etc. There is "unix domain" address type in unices, and
the address itself is just a pathname somewhere in file tree. Obviously,
such an address doesn't require any resolving, and still it is
absolutely usable address for socket binding etc. (if the socket itself
created as "unix domain" type socket).

-- 
jk

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk