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

Unified Diff: runtime/bin/socket.h

Issue 10917064: Throw an error if the ServerSocket host argument is invalid. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Use in_addr_t as s_addr type. Created 8 years, 3 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 | runtime/bin/socket.cc » ('j') | tests/standalone/io/socket_exception_test.dart » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/socket.h
diff --git a/runtime/bin/socket.h b/runtime/bin/socket.h
index 72d2ca9cf87b719b67003f7887dffb086edf9a9d..5d68561a80cac9b58d479a514a7ea5906869ad46 100644
--- a/runtime/bin/socket.h
+++ b/runtime/bin/socket.h
@@ -62,6 +62,12 @@ class ServerSocket {
static const intptr_t kTemporaryFailure = -2;
static intptr_t Accept(intptr_t fd);
+
+ // Returns a positive integer if the call is successful. In case of failure
+ // it returns:
+ //
+ // -1: system error (errno set)
+ // -5: invalid bindAddress
static intptr_t CreateBindListen(const char* bindAddress,
intptr_t port,
intptr_t backlog);
« no previous file with comments | « no previous file | runtime/bin/socket.cc » ('j') | tests/standalone/io/socket_exception_test.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698