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.
42 lines
1.1 KiB
42 lines
1.1 KiB
#ifndef __PROTOCOL_PROXY_HTTP_STREAM_HEADER__
|
|
#define __PROTOCOL_PROXY_HTTP_STREAM_HEADER__
|
|
|
|
#include "../../components/base/basicSettingsProvider.h"
|
|
#include "../../components/base/basicTransport.h"
|
|
#include "../net/clientPort.h"
|
|
#include "../net/netClientHandler.h"
|
|
|
|
/**
|
|
* TODO: Add class description
|
|
*
|
|
* @author gagua
|
|
*/
|
|
class protocolProxyStreamHTTP : public networkClientHandler
|
|
{
|
|
private:
|
|
|
|
bool m_bStreamingActive;
|
|
CSTR m_pRequestedURL;
|
|
CSTR m_pRequestedHost;
|
|
int m_pRequestedPort;
|
|
|
|
protected:
|
|
|
|
basicLogCollection * m_pLog;
|
|
clientPort * m_oDataTransport;
|
|
|
|
virtual int packetChecker(unsigned char * Buffer, size_t BufferSize);
|
|
virtual protocolPackage * packetExtractor(unsigned char * Buffer, size_t BufferSize);
|
|
virtual bool packetHandler(protocolPackage * Package);
|
|
|
|
public:
|
|
|
|
// Constructor
|
|
explicit protocolProxyStreamHTTP(SOCKET SocketFD, config_setting_t * Settings = NULL);
|
|
// ToDo: change Serial to BaseClass of some kind of socket
|
|
// protocolHTTP( clientPort *SocketTransport, config_setting_t *Settings = NULL );
|
|
// Destructor
|
|
virtual ~protocolProxyStreamHTTP();
|
|
};
|
|
|
|
#endif
|