diff options
author | phajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-20 18:50:38 +0000 |
---|---|---|
committer | phajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-20 18:50:38 +0000 |
commit | ac9eec64de86f3d3a290a1a8b9321260cff7ed23 (patch) | |
tree | aac041c6ddaec400b6e2b6d3d982935aa7f69a9c /net/base/address_list.h | |
parent | 8c1ae5ec4d47638315096f54819793484383c91f (diff) | |
download | chromium_src-ac9eec64de86f3d3a290a1a8b9321260cff7ed23.zip chromium_src-ac9eec64de86f3d3a290a1a8b9321260cff7ed23.tar.gz chromium_src-ac9eec64de86f3d3a290a1a8b9321260cff7ed23.tar.bz2 |
Really connect to the same server in FTP network transaction.
Also create necessary infrastructure to know the address
a client socket is connected to.
TEST=Covered by net_unittests.
BUG=35670
Review URL: http://codereview.chromium.org/598071
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@39559 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/base/address_list.h')
-rw-r--r-- | net/base/address_list.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/net/base/address_list.h b/net/base/address_list.h index 3087472..b477987 100644 --- a/net/base/address_list.h +++ b/net/base/address_list.h @@ -23,8 +23,14 @@ class AddressList { // object. void Adopt(struct addrinfo* head); - // Copies the given addrinfo rather than adopting it. - void Copy(const struct addrinfo* head); + // Copies the given addrinfo rather than adopting it. If |recursive| is true, + // all linked struct addrinfos will be copied as well. Otherwise only the head + // will be copied, and the rest of linked entries will be ignored. + void Copy(const struct addrinfo* head, bool recursive); + + // Appends a copy of |head| and all its linked addrinfos to the stored + // addrinfo. + void Append(const struct addrinfo* head); // Sets the port of all addresses in the list to |port| (that is the // sin[6]_port field for the sockaddrs). |