00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef __JackSocketClientChannel__
00021 #define __JackSocketClientChannel__
00022
00023 #include "JackGenericClientChannel.h"
00024 #include "JackSocket.h"
00025 #include "JackPlatformPlug.h"
00026 #include "JackThread.h"
00027
00028 namespace Jack
00029 {
00030
00031 class JackClient;
00032
00037 class JackSocketClientChannel : public JackGenericClientChannel, public JackRunnableInterface
00038 {
00039
00040 private:
00041
00042 JackServerSocket fNotificationListenSocket;
00043 JackClientSocket* fNotificationSocket;
00044 JackThread fThread;
00045 JackClient* fClient;
00046
00047 public:
00048
00049 JackSocketClientChannel();
00050 virtual ~JackSocketClientChannel();
00051
00052 int Open(const char* server_name, const char* name, int uuid, char* name_res, JackClient* client, jack_options_t options, jack_status_t* status);
00053 void Close();
00054
00055 int Start();
00056 void Stop();
00057
00058
00059 bool Init();
00060 bool Execute();
00061
00062 bool IsChannelThread() { return fThread.IsThread(); }
00063 };
00064
00065 }
00066
00067 #endif
00068