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

Side by Side Diff: net/base/network_change_notifier_netlink_linux.h

Issue 10689015: [net] Adds AddressTrackerLinux which keeps track of interface addresses using rtnetlink. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Wrapped HANDLE_EINTR(close) into CloseSocket. Created 8 years, 5 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 // This file is to hide the netlink implementation details since the netlink.h
6 // header contains a struct net; which conflicts with the net namespace. So we
7 // separate out all the netlink stuff into these files.
8
9 #ifndef NET_BASE_NETWORK_CHANGE_NOTIFIER_NETLINK_LINUX_H_
10 #define NET_BASE_NETWORK_CHANGE_NOTIFIER_NETLINK_LINUX_H_
11 #pragma once
12
13 #include <cstddef>
14
15 // Returns the file descriptor if successful. Otherwise, returns -1.
16 int InitializeNetlinkSocket();
17
18 // Returns true if a network change has been detected, otherwise returns false.
19 bool HandleNetlinkMessage(char* buf, size_t len);
20
21 #endif // NET_BASE_NETWORK_CHANGE_NOTIFIER_NETLINK_LINUX_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698