22 #ifndef FLOODING_PACKET_SOURCE_H 23 #define FLOODING_PACKET_SOURCE_H 40 void SendNextPacket() {
47 if (((++m_usSeqNr) % 1000) == 0) {
49 std::cout <<
"1000 Packets written to the TCP socket" << std::endl;
56 uint16_t m_UnicastSSA;
57 unsigned short m_usSeqNr;
60 #endif // FLOODING_PACKET_SOURCE_H
bool Send(const HdlcdPacketData &a_PacketData, std::function< void()> a_OnSendDoneCallback=nullptr)
Send a single data packet to the peer entity.
static HdlcdPacketData CreatePacket(const std::vector< unsigned char > a_Payload, bool a_bReliable, bool a_bInvalid=false, bool a_bWasSent=false)
Copyright (c) 2016, Florian Evers, florian-evers@gmx.de All rights reserved.
FloodingPacketSource(HdlcdClient &a_HdlcdClient, uint16_t a_UnicastSSA)