mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-04 02:33:09 +02:00
39 lines
1 KiB
C++
39 lines
1 KiB
C++
//
|
|
// NodeConnectionData.h
|
|
// domain-server/src
|
|
//
|
|
// Created by Stephen Birarda on 2015-08-24.
|
|
// 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
|
|
//
|
|
|
|
#pragma once
|
|
|
|
#ifndef hifi_NodeConnectionData_h
|
|
#define hifi_NodeConnectionData_h
|
|
|
|
#include <Node.h>
|
|
|
|
class NodeConnectionData {
|
|
public:
|
|
static NodeConnectionData fromDataStream(QDataStream& dataStream, const HifiSockAddr& senderSockAddr,
|
|
bool isConnectRequest = true);
|
|
|
|
QUuid connectUUID;
|
|
quint64 lastPingTimestamp{ 0 }; // client-side send time of last connect/domain list request
|
|
NodeType_t nodeType;
|
|
HifiSockAddr publicSockAddr;
|
|
HifiSockAddr localSockAddr;
|
|
HifiSockAddr senderSockAddr;
|
|
QList<NodeType_t> interestList;
|
|
QString placeName;
|
|
QString hardwareAddress;
|
|
QUuid machineFingerprint;
|
|
|
|
QByteArray protocolVersion;
|
|
};
|
|
|
|
|
|
#endif // hifi_NodeConnectionData_h
|