在PCap++中,我希望检测有效负载是否是HTTP请求。为此,我试图解析字符串,并期望库允许我检查是否成功地完成了该操作。I可以用消息创建一个RawPacket,我可以用消息创建一个数据包,但是它不包含任何HttpRequestLayer,因此,解析对于检测消息的有效性是无用的。I不能直接从消息创建HttpRequestLayer。std::string msg= "GET /index.html HTTP/1.1\nHost: example.com\n\n";
// Try to get a RawPacket: wor
capturedPackets.getAndRemoveFromVector(position));In file included from /home/myself/Downloads/PcapPlusPlus-master/Dist/header/PcapLiveDevice.h:9:0,
from /home/myself/Downloads/PcapPlusPlus-master/Di