Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(578)

Unified Diff: net/base/address_list.h

Issue 6598040: Add constructor for creating an AddressList from a struct sockaddr. This is... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | net/base/address_list.cc » ('j') | net/base/address_list.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « no previous file | net/base/address_list.cc » ('j') | net/base/address_list.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698