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

Unified Diff: runtime/bin/socket.h

Issue 14619008: Add static getters for common internet addresses (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Addressed review comments Created 7 years, 8 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 | « runtime/bin/io_natives.cc ('k') | runtime/bin/socket.cc » ('j') | no next file with comments »
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 aa8d19822fcb9830b5318909c5ba9a15220fd71a..99a00781bf51e2991b4334a41689a83847054d30 100644
--- a/runtime/bin/socket.h
+++ b/runtime/bin/socket.h
@@ -42,6 +42,15 @@ class SocketAddress {
TYPE_IPV6,
};
+ enum {
+ ADDRESS_LOOPBACK_IP_V4,
+ ADDRESS_LOOPBACK_IP_V6,
+ ADDRESS_ANY_IP_V4,
+ ADDRESS_ANY_IP_V6,
+ ADDRESS_FIRST = ADDRESS_LOOPBACK_IP_V4,
+ ADDRESS_LAST = ADDRESS_ANY_IP_V6,
+ };
+
explicit SocketAddress(struct addrinfo* addrinfo);
int GetType() {
« no previous file with comments | « runtime/bin/io_natives.cc ('k') | runtime/bin/socket.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698