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.
39 lines
1.2 KiB
39 lines
1.2 KiB
#ifndef __PROTOCOL_PROXY_HTTP_STREAM_HEADER__
|
|
#define __PROTOCOL_PROXY_HTTP_STREAM_HEADER__
|
|
|
|
#include "../net/clientPort.h"
|
|
#include "../net/netClientHandler.h"
|
|
#include "../../components/base/basicTransport.h"
|
|
#include "../../components/base/basicSettingsProvider.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
|