This commit is contained in:
David Rowe 2021-06-30 22:21:38 +12:00
parent 2a9ab98e41
commit d0c89c7d91
3 changed files with 4 additions and 6 deletions

View file

@ -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., <code>"WebRTC"</code>.
/// @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];

View file

@ -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)
{

View file

@ -142,7 +142,6 @@ private:
void setError(QAbstractSocket::SocketError errorType, QString errorString);
void clearError();
QObject* _parent;
WebRTCSignalingServer _signalingServer;
WebRTCDataChannels _dataChannels;