diff options
Diffstat (limited to 'include/sysutils/SocketListener.h')
-rw-r--r-- | include/sysutils/SocketListener.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/sysutils/SocketListener.h b/include/sysutils/SocketListener.h index 8f56230..649c89a 100644 --- a/include/sysutils/SocketListener.h +++ b/include/sysutils/SocketListener.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2008 The Android Open Source Project + * Copyright (C) 2008-2014 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -19,6 +19,7 @@ #include <pthread.h> #include <sysutils/SocketClient.h> +#include "SocketClientCommand.h" class SocketListener { bool mListen; @@ -41,6 +42,8 @@ public: void sendBroadcast(int code, const char *msg, bool addErrno); + void runOnEachSocket(SocketClientCommand *command); + protected: virtual bool onDataAvailable(SocketClient *c) = 0; |