From ce8ae5556b90de67f23ddb974da76bee3e43b6fd Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Thu, 13 Mar 2008 17:32:00 +0000 Subject: anyrtpproxy can handled most commands TODO: start threads for relaying --- anyrtpproxy/commandHandler.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'anyrtpproxy/commandHandler.h') diff --git a/anyrtpproxy/commandHandler.h b/anyrtpproxy/commandHandler.h index 41bff2d..6e75bc4 100644 --- a/anyrtpproxy/commandHandler.h +++ b/anyrtpproxy/commandHandler.h @@ -34,14 +34,15 @@ #include #include "../datatypes.h" #include "../PracticalSocket.h" +#include "../syncQueue.h" using std::string; class CommandHandler { public: - CommandHandler(u_int16_t lp); - CommandHandler(string la, u_int16_t lp); + CommandHandler(SyncQueue& q, u_int16_t lp); + CommandHandler(SyncQueue& q, string la, u_int16_t lp); ~CommandHandler(); bool isRunning(); @@ -54,6 +55,7 @@ public: #define RET_OK "0" #define RET_ERR_SYNTAX "E1" + #define RET_ERR_UNKNOWN "E2" #define BASE_VERSION "20040107" #define SUP_VERSION "20050322" @@ -73,6 +75,8 @@ private: string handleInfo(); pthread_t thread_; + SyncQueue& queue_; + bool running_; UDPSocket control_sock_; string local_address_; -- cgit v1.2.3