mirror of
https://github.com/overte-org/overte.git
synced 2025-08-10 18:03:27 +02:00
40 lines
1.2 KiB
C++
40 lines
1.2 KiB
C++
//
|
|
// NLPacketList.h
|
|
// libraries/networking/src
|
|
//
|
|
// Created by Stephen Birarda on 07/06/15.
|
|
// Copyright 2015 High Fidelity, Inc.
|
|
//
|
|
// Distributed under the Apache License, Version 2.0.
|
|
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
|
|
//
|
|
|
|
#ifndef hifi_NLPacketList_h
|
|
#define hifi_NLPacketList_h
|
|
|
|
#include "udt/PacketList.h"
|
|
|
|
#include "NLPacket.h"
|
|
|
|
class NLPacketList : public udt::PacketList {
|
|
public:
|
|
static std::unique_ptr<NLPacketList> create(PacketType packetType, QByteArray extendedHeader = QByteArray(),
|
|
bool isReliable = false, bool isOrdered = false);
|
|
|
|
static std::unique_ptr<NLPacketList> fromPacketList(std::unique_ptr<PacketList>);
|
|
|
|
const QUuid& getSourceID() const { return _sourceID; }
|
|
|
|
private:
|
|
NLPacketList(PacketType packetType, QByteArray extendedHeader = QByteArray(), bool isReliable = false,
|
|
bool isOrdered = false);
|
|
NLPacketList(PacketList&& packetList);
|
|
NLPacketList(const NLPacketList& other) = delete;
|
|
NLPacketList& operator=(const NLPacketList& other) = delete;
|
|
|
|
virtual std::unique_ptr<udt::Packet> createPacket();
|
|
|
|
QUuid _sourceID;
|
|
};
|
|
|
|
#endif // hifi_PacketList_h
|