Chromium Code Reviews| Index: net/base/address_list.h |
| =================================================================== |
| --- net/base/address_list.h (revision 76198) |
| +++ net/base/address_list.h (working copy) |
| @@ -27,6 +27,12 @@ |
| // canonicalized IP address. |
| AddressList(const IPAddressNumber& address, int port, bool canonicalize_name); |
| + // Constructs an address list for a single socket address. |
| + // |socket_type| is either SOCK_STREAM or SOCK_DGRAM |
| + // |protocol| is either IPPROTO_TCP or IPPROTO_UDP |
| + AddressList(struct sockaddr* address, socklen_t address_length, |
|
eroman
2011/03/01 02:52:33
nit: I have a personal hatred towards constructor
eroman
2011/03/01 02:53:09
Please make it a |const struct sockaddr*| to empha
Mike Belshe
2011/03/01 19:01:33
I don't understand why - especially for a case lik
Mike Belshe
2011/03/01 19:01:33
Done.
eroman
2011/03/01 22:11:53
The problem I have with constructor overloading, i
|
| + int socket_type, int protocol); |
| + |
| AddressList(const AddressList& addresslist); |
| ~AddressList(); |
| AddressList& operator=(const AddressList& addresslist); |