You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
878 B
27 lines
878 B
#ifndef __SERVLET_WEB_SOCKET_HEADER__
|
|
#define __SERVLET_WEB_SOCKET_HEADER__
|
|
|
|
#include "../../components/base/basicDualThread.h"
|
|
#include "servletChannelWS.h"
|
|
#include "servletClientHandlerWS.h"
|
|
|
|
class servletWS: public basicDualThread{
|
|
private:
|
|
basicLogCollection * m_pLog;
|
|
int m_nSocketDescriptor;
|
|
uint16_t m_nListenPort;
|
|
|
|
|
|
vectorChannelsWS m_vChannels;
|
|
vectorClientHandlerWS m_vWebClients;
|
|
|
|
public:
|
|
explicit servletWS( uint16_t ListenPort = 8081 );
|
|
virtual ~servletWS();
|
|
bool create( uint16_t ListenPort = 8081 );
|
|
virtual void m_fThreadAProc( void ); // Listener
|
|
virtual void m_fThreadBProc( void ); // Worker
|
|
bool attachChannel( CSTR MediaURI, bool LocalDevice );
|
|
};
|
|
|
|
#endif
|