Initial
This commit is contained in:
36
CapServer/SocketServer.hpp
Normal file
36
CapServer/SocketServer.hpp
Normal file
@@ -0,0 +1,36 @@
|
||||
#ifndef _CAPSERVER_SOCKETSERVER_HPP_
|
||||
#define _CAPSERVER_SOCKETSERVER_HPP_
|
||||
#ifndef _COMMON_BLOCK_HPP_
|
||||
#include <common/block.hpp>
|
||||
#endif
|
||||
#ifndef _THREAD_MONITOR_HPP_
|
||||
#include <thread/monitor.hpp>
|
||||
#endif
|
||||
#ifndef _CAPSERVER_WDMCAP_HPP_
|
||||
#include <CapServer/WDMCap.hpp>
|
||||
#endif
|
||||
#ifndef _CAPSERVER_GENERICSERVER_HPP_
|
||||
#include <CapServer/GenSrv.hpp>
|
||||
#endif
|
||||
#ifndef _CAPSERVER_MONITORTHREAD_HPP_
|
||||
#include <CapServer/MonitorThread.hpp>
|
||||
#endif
|
||||
|
||||
class SocketServer : public GenericServer
|
||||
{
|
||||
public:
|
||||
SocketServer(const String &host,int port,int deviceIndex=0,bool retain=false,bool debug=false,bool showSrcDlg=false,int timeout=1000);
|
||||
virtual ~SocketServer();
|
||||
protected:
|
||||
virtual void acceptHandler(SmartPointer<Socket> &socketControl);
|
||||
virtual void message(const String &message);
|
||||
private:
|
||||
void sendFrame(Socket &socketControl);
|
||||
void sendDebugFrame(Socket &socketControl);
|
||||
|
||||
MonitorThread mMonitorThread;
|
||||
WDMCap mWDMCap;
|
||||
VidCap mVidCap;
|
||||
bool mDebug;
|
||||
};
|
||||
#endif
|
||||
Reference in New Issue
Block a user