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

Unified Diff: runtime/bin/socket.h

Issue 17640008: Add reverse dns lookup as a method on InternetAddress. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 6 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') | 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 0b0577363581e3afe446dc6d707d95bd2a64bf50..ffca2072f00aa409817e6ab21a43dd252dac9ca2 100644
--- a/runtime/bin/socket.h
+++ b/runtime/bin/socket.h
@@ -150,6 +150,7 @@ class Socket {
enum SocketRequest {
kLookupRequest = 0,
kListInterfacesRequest = 1,
+ kReverseLookupRequest = 2,
};
static bool Initialize();
@@ -174,6 +175,10 @@ class Socket {
static AddressList<SocketAddress>* LookupAddress(const char* host,
int type,
OSError** os_error);
+ static bool ReverseLookup(RawAddr addr,
+ char* host,
+ intptr_t host_len,
+ OSError** os_error);
// List interfaces. Returns a AddressList of InterfaceSocketAddress's.
static AddressList<InterfaceSocketAddress>* ListInterfaces(
« no previous file with comments | « no previous file | runtime/bin/socket.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698