OSDN Git Service

When un-natting try to do all we can
[android-x86/system-netd.git] / CommandListener.h
index 05e990e..f0a7db7 100644 (file)
@@ -43,6 +43,8 @@ public:
 
 private:
 
+    static int writeFile(const char *path, const char *value, int size);
+
     static int readInterfaceCounters(const char *iface, unsigned long *rx, unsigned long *tx);
 
     class SoftapCmd : public NetdCommand {
@@ -106,6 +108,10 @@ private:
         BandwidthControlCmd();
         virtual ~BandwidthControlCmd() {}
         int runCommand(SocketClient *c, int argc, char ** argv);
+    protected:
+        void sendGenericOkFail(SocketClient *cli, int cond);
+        void sendGenericOpFailed(SocketClient *cli, const char *errMsg);
+        void sendGenericSyntaxError(SocketClient *cli, const char *usageMsg);
     };
 
     class ResolverCmd : public NetdCommand {