mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-07 20:22:27 +02:00
Tidying
This commit is contained in:
parent
2a9ab98e41
commit
d0c89c7d91
3 changed files with 4 additions and 6 deletions
|
@ -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];
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -142,7 +142,6 @@ private:
|
|||
void setError(QAbstractSocket::SocketError errorType, QString errorString);
|
||||
void clearError();
|
||||
|
||||
QObject* _parent;
|
||||
WebRTCSignalingServer _signalingServer;
|
||||
WebRTCDataChannels _dataChannels;
|
||||
|
||||
|
|
Loading…
Reference in a new issue