mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 11:17:34 +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 {
|
enum class SocketType {
|
||||||
Unknown, ///< Unknown socket type.
|
Unknown, ///< Unknown socket type.
|
||||||
UDP, ///< UDP socket.
|
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.
|
/// @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 QString socketTypeToString(SocketType socketType) {
|
||||||
static QStringList SOCKET_TYPE_STRINGS { "Unknown", "UDP", "WebRTC" };
|
static QStringList SOCKET_TYPE_STRINGS { "Unknown", "UDP", "WebRTC" };
|
||||||
return SOCKET_TYPE_STRINGS[(int)socketType];
|
return SOCKET_TYPE_STRINGS[(int)socketType];
|
||||||
|
|
|
@ -16,7 +16,6 @@
|
||||||
|
|
||||||
WebRTCSocket::WebRTCSocket(QObject* parent, NodeType_t nodeType) :
|
WebRTCSocket::WebRTCSocket(QObject* parent, NodeType_t nodeType) :
|
||||||
QObject(parent),
|
QObject(parent),
|
||||||
_parent(parent),
|
|
||||||
_signalingServer(this /*, QHostAddress::AnyIPv4, DEFAULT_DOMAIN_SERVER_WS_PORT*/),
|
_signalingServer(this /*, QHostAddress::AnyIPv4, DEFAULT_DOMAIN_SERVER_WS_PORT*/),
|
||||||
_dataChannels(this, nodeType)
|
_dataChannels(this, nodeType)
|
||||||
{
|
{
|
||||||
|
|
|
@ -142,7 +142,6 @@ private:
|
||||||
void setError(QAbstractSocket::SocketError errorType, QString errorString);
|
void setError(QAbstractSocket::SocketError errorType, QString errorString);
|
||||||
void clearError();
|
void clearError();
|
||||||
|
|
||||||
QObject* _parent;
|
|
||||||
WebRTCSignalingServer _signalingServer;
|
WebRTCSignalingServer _signalingServer;
|
||||||
WebRTCDataChannels _dataChannels;
|
WebRTCDataChannels _dataChannels;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue