a8/a8/mixedsession.h
2018-10-09 11:57:04 +08:00

25 lines
486 B
C++

#ifndef A8_MIXEDSESSION_H
#define A8_MIXEDSESSION_H
#include <a8/basehttpsession.h>
namespace a8
{
class MixedSession: public BaseHttpSession
{
protected:
virtual void Reset() override;
virtual void Destory() override;
virtual void DecodePacket(char* buf, int& offset, unsigned int buflen) override;
void ProcessHandShake(char* buf, int& offset, unsigned int buflen);
private:
bool is_first_packet_ = true;
};
}
#endif