14 #ifndef overte_SocketType_h
15 #define overte_SocketType_h
28 class SocketTypeToString {
33 static QString socketTypeToString (
SocketType socketType) {
36 return QStringLiteral(
"Unknown");
38 return QStringLiteral(
"UDP");
40 return QStringLiteral(
"WebRTC");
42 return QStringLiteral(
"Unknown value in enum! BUG!");
47 inline QDebug operator<<(QDebug debug,
SocketType type) {
48 debug << SocketTypeToString::socketTypeToString(type);
SocketType
The types of network socket.
Definition: SocketType.h:22
@ Unknown
Socket type unknown or not set.
@ WebRTC
WebRTC socket. A WebRTC data channel presented as a UDP-style socket.