summaryrefslogtreecommitdiffstats
path: root/net/base
diff options
context:
space:
mode:
authorrch@chromium.org <rch@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-05 03:09:04 +0000
committerrch@chromium.org <rch@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-05 03:09:04 +0000
commit88e03fa16a2ed1a178822d4ba46dd96a276815a4 (patch)
treeaafed5350e0a5da62b70d277db84d0ee87512a33 /net/base
parentb3d75b91d5160d03e5e58ea430cfc5f33f2eee32 (diff)
downloadchromium_src-88e03fa16a2ed1a178822d4ba46dd96a276815a4.zip
chromium_src-88e03fa16a2ed1a178822d4ba46dd96a276815a4.tar.gz
chromium_src-88e03fa16a2ed1a178822d4ba46dd96a276815a4.tar.bz2
Clarify the semantics of Socket::Read() and Socket::Write(),
particularly as they related to closed / disconnected sockets. Added a new ERR_SOCKET_NOT_CONNECTED error which is now returned by GetPeerAddress. This addresses wtc's feedback on CL 3421028. BUG=56423,56426 TEST=none Review URL: http://codereview.chromium.org/3384034 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@61471 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/base')
-rw-r--r--net/base/net_error_list.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/net/base/net_error_list.h b/net/base/net_error_list.h
index 9e4ec6a..b96524d 100644
--- a/net/base/net_error_list.h
+++ b/net/base/net_error_list.h
@@ -66,6 +66,9 @@ NET_ERROR(OUT_OF_MEMORY, -13)
// from the expectation.
NET_ERROR(UPLOAD_FILE_CHANGED, -14)
+// The socket is not connected
+NET_ERROR(SOCKET_NOT_CONNECTED, -15)
+
// A connection was closed (corresponding to a TCP FIN).
NET_ERROR(CONNECTION_CLOSED, -100)