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

Unified Diff: runtime/bin/socket.h

Issue 95183002: Add the index information to network interface (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Addressed review comments Created 7 years, 1 month 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 1bec3e61d5b7af3e2d5a999d8dc1661f011aafda..d4ae826072126a0cba5b6ae37190116fdd822544 100644
--- a/runtime/bin/socket.h
+++ b/runtime/bin/socket.h
@@ -110,9 +110,11 @@ class SocketAddress {
class InterfaceSocketAddress {
public:
explicit InterfaceSocketAddress(struct sockaddr* sa,
- const char* interface_name)
+ const char* interface_name,
+ intptr_t interface_index)
: socket_address_(new SocketAddress(sa)),
- interface_name_(interface_name) {}
+ interface_name_(interface_name),
+ interface_index_(interface_index) {}
~InterfaceSocketAddress() {
delete socket_address_;
@@ -121,10 +123,12 @@ class InterfaceSocketAddress {
SocketAddress* socket_address() const { return socket_address_; }
const char* interface_name() const { return interface_name_; }
+ int interface_index() const { return interface_index_; }
private:
SocketAddress* socket_address_;
const char* interface_name_;
+ intptr_t interface_index_;
DISALLOW_COPY_AND_ASSIGN(InterfaceSocketAddress);
};
« 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