summaryrefslogtreecommitdiffstats
path: root/net/socket/tcp_client_socket_win.h
diff options
context:
space:
mode:
authoreroman@chromium.org <eroman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-21 22:17:47 +0000
committereroman@chromium.org <eroman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-21 22:17:47 +0000
commiteb8605cc05a24c5d444c43d3c559b44ce7a5a75e (patch)
treeeefc9b78a69d6e740b06cc408cfe0dd8e159bcc4 /net/socket/tcp_client_socket_win.h
parentb90490bbcbaad21ce539f1e7bd9dbfbfdeb164e1 (diff)
downloadchromium_src-eb8605cc05a24c5d444c43d3c559b44ce7a5a75e.zip
chromium_src-eb8605cc05a24c5d444c43d3c559b44ce7a5a75e.tar.gz
chromium_src-eb8605cc05a24c5d444c43d3c559b44ce7a5a75e.tar.bz2
net-internals: Log the addresses that were attempted during a TCP connect, and any OS errors that attempts failed with (windows implementation)
Note that this change is the same as r47764, but for the windows implementation. BUG=44488 Review URL: http://codereview.chromium.org/2127011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47956 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/socket/tcp_client_socket_win.h')
-rw-r--r--net/socket/tcp_client_socket_win.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/net/socket/tcp_client_socket_win.h b/net/socket/tcp_client_socket_win.h
index a2b1fcf..4ac57a8 100644
--- a/net/socket/tcp_client_socket_win.h
+++ b/net/socket/tcp_client_socket_win.h
@@ -68,6 +68,7 @@ class TCPClientSocketWin : public ClientSocket, NonThreadSafe {
return next_connect_state_ != CONNECT_STATE_NONE;
}
+ // Returns the OS error code (or 0 on success).
int CreateSocket(const struct addrinfo* ai);
// Called after Connect() has completed with |net_error|.
@@ -105,6 +106,9 @@ class TCPClientSocketWin : public ClientSocket, NonThreadSafe {
// The next state for the Connect() state machine.
ConnectState next_connect_state_;
+ // The OS error that CONNECT_STATE_CONNECT last completed with.
+ int connect_os_error_;
+
BoundNetLog net_log_;
DISALLOW_COPY_AND_ASSIGN(TCPClientSocketWin);