diff --git a/libraries/networking/src/SocketType.h b/libraries/networking/src/SocketType.h index c63ee0cf34..a798fb59c6 100644 --- a/libraries/networking/src/SocketType.h +++ b/libraries/networking/src/SocketType.h @@ -18,16 +18,16 @@ /// @{ -/// @brief The network socket type. +/// @brief The types of network socket. enum class SocketType { Unknown, ///< Unknown socket type. UDP, ///< UDP socket. - WebRTC ///< WebRTC socket. + WebRTC ///< WebRTC socket. A WebRTC data channel presented as a UDP-style socket. }; -/// @brief Returns the name of a SocketType value as a string. +/// @brief Returns the name of a SocketType value, e.g., "WebRTC". /// @param socketType The SocketType value. -/// @return The name of the SocketType value as a string. +/// @return The name of the SocketType value. static QString socketTypeToString(SocketType socketType) { static QStringList SOCKET_TYPE_STRINGS { "Unknown", "UDP", "WebRTC" }; return SOCKET_TYPE_STRINGS[(int)socketType]; diff --git a/libraries/networking/src/webrtc/WebRTCSocket.cpp b/libraries/networking/src/webrtc/WebRTCSocket.cpp index 5c6e3ce292..b9eee027a1 100644 --- a/libraries/networking/src/webrtc/WebRTCSocket.cpp +++ b/libraries/networking/src/webrtc/WebRTCSocket.cpp @@ -16,7 +16,6 @@ WebRTCSocket::WebRTCSocket(QObject* parent, NodeType_t nodeType) : QObject(parent), - _parent(parent), _signalingServer(this /*, QHostAddress::AnyIPv4, DEFAULT_DOMAIN_SERVER_WS_PORT*/), _dataChannels(this, nodeType) { diff --git a/libraries/networking/src/webrtc/WebRTCSocket.h b/libraries/networking/src/webrtc/WebRTCSocket.h index 9b2011b620..8d5d5fc347 100644 --- a/libraries/networking/src/webrtc/WebRTCSocket.h +++ b/libraries/networking/src/webrtc/WebRTCSocket.h @@ -142,7 +142,6 @@ private: void setError(QAbstractSocket::SocketError errorType, QString errorString); void clearError(); - QObject* _parent; WebRTCSignalingServer _signalingServer; WebRTCDataChannels _dataChannels;