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

Unified Diff: net/socket/tcp_client_socket_win.h

Issue 10309002: Reimplements net::AddressList without struct addrinfo. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: get_canonical_name -> canonical_name. iterator to indexing Created 8 years, 7 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 | « net/socket/tcp_client_socket_unittest.cc ('k') | net/socket/tcp_client_socket_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/socket/tcp_client_socket_win.h
diff --git a/net/socket/tcp_client_socket_win.h b/net/socket/tcp_client_socket_win.h
index 9fffab82b808bdd4f978631b419e7a4660d44dda..c17a0b979f0b07bc608297c7870363ef8b0e51eb 100644
--- a/net/socket/tcp_client_socket_win.h
+++ b/net/socket/tcp_client_socket_win.h
@@ -84,7 +84,7 @@ class NET_EXPORT TCPClientSocketWin : public StreamSocket,
int DoConnectComplete(int result);
// Helper used by Disconnect(), which disconnects minus the logging and
- // resetting of current_ai_.
+ // resetting of current_address_index_.
void DoDisconnect();
// Returns true if a Connect() is in progress.
@@ -113,8 +113,8 @@ class NET_EXPORT TCPClientSocketWin : public StreamSocket,
// The list of addresses we should try in order to establish a connection.
AddressList addresses_;
- // Where we are in above list, or NULL if all addrinfos have been tried.
- const struct addrinfo* current_ai_;
+ // Where we are in above list. Set to -1 if uninitialized.
+ int current_address_index_;
// The various states that the socket could be in.
bool waiting_read_;
« no previous file with comments | « net/socket/tcp_client_socket_unittest.cc ('k') | net/socket/tcp_client_socket_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698