OSDN Git Service

DVB configures added.
[rec10/rec10-git.git] / b25-remote / CasServer.h
index 35d7732..3757d68 100755 (executable)
@@ -1,56 +1,56 @@
-// CasServer.h: CCasServer \83N\83\89\83X\82Ì\83C\83\93\83^\81[\83t\83F\83C\83X\r
-//\r
-//////////////////////////////////////////////////////////////////////\r
-\r
-#pragma once\r
-\r
-\r
-#include <map>\r
-#include "CasClient.h"\r
-#include "TsUtilClass.h"\r
-#include "SmartSock.h"\r
-\r
-\r
-using std::map;\r
-\r
-\r
-class CCasServer : protected CCasClient::ICasClientHandler\r
-{\r
-public:\r
-       class ICasServerHandler\r
-       {\r
-       public:\r
-               virtual void OnCasServerEvent(CCasServer *pCasServer, const WORD wEventID) = 0;\r
-       };\r
-\r
-       enum\r
-       {\r
-               CSEI_CONNECTED,         // \83N\83\89\83C\83A\83\93\83g\90Ú\91±\r
-               CSEI_DISCONNECTED,      // \83N\83\89\83C\83A\83\93\83g\90Ø\92f\r
-       };\r
-\r
-       CCasServer(void);\r
-       CCasServer(ICasServerHandler *pEventHandler);\r
-       ~CCasServer(void);\r
-\r
-       const BOOL OpenServer(const WORD wServerPort);\r
-       void CloseServer(void);\r
-       \r
-       const DWORD GetClientNum(void) const;\r
-\r
-protected:\r
-       virtual void OnCasClientEvent(CCasClient *pClient, const DWORD dwEventID, PVOID pParam);\r
-\r
-       void ServerThread(void);\r
-       static void* ServerThreadRaw(LPVOID pParam);\r
-\r
-       ICasServerHandler *m_pEventHandler;\r
-\r
-       CSmartSock m_pSocket;\r
+// CasServer.h: CCasServer クラスのインターフェイス
+//
+//////////////////////////////////////////////////////////////////////
+
+#pragma once
+
+
+#include <map>
+#include "CasClient.h"
+#include "TsUtilClass.h"
+#include "SmartSock.h"
+
+
+using std::map;
+
+
+class CCasServer : protected CCasClient::ICasClientHandler
+{
+public:
+       class ICasServerHandler
+       {
+       public:
+               virtual void OnCasServerEvent(CCasServer *pCasServer, const WORD wEventID) = 0;
+       };
+
+       enum
+       {
+               CSEI_CONNECTED,         // クライアント接続
+               CSEI_DISCONNECTED,      // クライアント切断
+       };
+
+       CCasServer(void);
+       CCasServer(ICasServerHandler *pEventHandler);
+       ~CCasServer(void);
+
+       const BOOL OpenServer(const WORD wServerPort);
+       void CloseServer(void);
+       
+       const DWORD GetClientNum(void) const;
+
+protected:
+       virtual void OnCasClientEvent(CCasClient *pClient, const DWORD dwEventID, PVOID pParam);
+
+       void ServerThread(void);
+       static void* ServerThreadRaw(LPVOID pParam);
+
+       ICasServerHandler *m_pEventHandler;
+
+       CSmartSock m_pSocket;
        pthread_t m_hServerThread;
-\r
-       typedef map<CCasClient *, CCasClient *> ClientList;\r
-       ClientList m_ClientList;\r
-       \r
-       CCriticalLock m_Lock;\r
-};\r
+
+       typedef map<CCasClient *, CCasClient *> ClientList;
+       ClientList m_ClientList;
+       
+       CCriticalLock m_Lock;
+};