add shutdown packet and flow report

This commit is contained in:
xiongguangjie
2022-06-03 21:17:01 +08:00
parent b9f66ca1ec
commit 82da99eef3
5 changed files with 56 additions and 3 deletions

View File

@@ -36,7 +36,7 @@ public:
* @param len 数据长度
* @param addr 数据来源地址
*/
void inputSockData(uint8_t *buf, int len, struct sockaddr_storage *addr);
virtual void inputSockData(uint8_t *buf, int len, struct sockaddr_storage *addr);
std::string getIdentifier();
@@ -72,6 +72,7 @@ private:
void sendACKPacket();
void sendLightACKPacket();
void sendKeepLivePacket();
void sendShutDown();
protected:
void sendDataPacket(DataPacket::Ptr pkt,char* buf,int len,bool flush = false);
void sendControlPacket(ControlPacket::Ptr pkt,bool flush = true);