#ifndef _CAPSERVER_SOCKETSERVER_HPP_ #define _CAPSERVER_SOCKETSERVER_HPP_ #ifndef _COMMON_BLOCK_HPP_ #include #endif #ifndef _THREAD_MONITOR_HPP_ #include #endif #ifndef _CAPSERVER_WDMCAP_HPP_ #include #endif #ifndef _CAPSERVER_GENERICSERVER_HPP_ #include #endif class SocketServer : public GenericServer { public: SocketServer(int deviceIndex=0,bool retain=false,bool debug=false,bool showSrcDlg=false); virtual ~SocketServer(); protected: virtual void acceptHandler(SmartPointer &socketControl); virtual void message(const String &message); private: void sendFrame(Socket &socketControl); void sendDebugFrame(Socket &socketControl); WDMCap mWDMCap; bool mRetainImage; bool mDebug; }; #endif