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

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') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/address_list.h
===================================================================
--- net/base/address_list.h (revision 76440)
+++ net/base/address_list.h (working copy)
@@ -74,6 +74,16 @@
// Get access to the head of the addrinfo list.
const struct addrinfo* head() const;
+ // Constructs an address list for a single socket address.
+ // |address| the sockaddr to copy.
+ // |socket_type| is either SOCK_STREAM or SOCK_DGRAM.
+ // |protocol| is either IPPROTO_TCP or IPPROTO_UDP.
+ static AddressList* CreateAddressListFromSockaddr(
+ const struct sockaddr* address,
+ socklen_t address_length,
+ int socket_type,
+ int protocol);
+
private:
struct Data;
« no previous file with comments | « no previous file | net/base/address_list.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698