summaryrefslogtreecommitdiff
path: root/arp_client.h
diff options
context:
space:
mode:
authorSamuel Tan <samueltan@chromium.org>2015-07-20 12:59:00 -0700
committerChromeOS Commit Bot <chromeos-commit-bot@chromium.org>2015-07-22 19:31:08 +0000
commit7dee39e069c328a40e4328eb9bb7ef6aa3b2a095 (patch)
tree0226f595b403a05dab17b19d1893541b345d72cf /arp_client.h
parentc12f3996f8d924c6e05192371f891454adbd1fca (diff)
downloadshill-7dee39e069c328a40e4328eb9bb7ef6aa3b2a095.tar.gz
shill: Add IsStarted to ArpClient
Add an IsStarted utiltiy function to ArpClient that allows users of the class to check if an ArpClient has already been started. BUG=None TEST=None Change-Id: Ia180ce8b30a8bb1156bb074ed813c09125e27f41 Reviewed-on: https://chromium-review.googlesource.com/287443 Tested-by: Samuel Tan <samueltan@chromium.org> Reviewed-by: Paul Stewart <pstew@chromium.org> Commit-Queue: Samuel Tan <samueltan@chromium.org>
Diffstat (limited to 'arp_client.h')
-rw-r--r--arp_client.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/arp_client.h b/arp_client.h
index 345ac1c7..2ccf4c3f 100644
--- a/arp_client.h
+++ b/arp_client.h
@@ -47,6 +47,8 @@ class ArpClient {
virtual int socket() const { return socket_; }
+ bool IsStarted() { return socket_closer_.get(); }
+
private:
friend class ArpClientTest;