提交 e1997532 authored 作者: Iñaki Baz Castillo's avatar Iñaki Baz Castillo

Work in IceTransport.

上级 f57ecf68
...@@ -98,6 +98,21 @@ class Transport extends EventEmitter ...@@ -98,6 +98,21 @@ class Transport extends EventEmitter
throw error; throw error;
}); });
} }
get iceComponent()
{
return this._data.iceComponent;
}
getIceLocalParameters()
{
return this._data.iceLocalParameters;
}
getIceLocalCandidates()
{
return this._data.iceLocalCandidates;
}
} }
module.exports = Transport; module.exports = Transport;
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
namespace RTC namespace RTC
{ {
class ICETransport : class IceTransport :
public RTC::ICEServer::Listener, public RTC::ICEServer::Listener,
public RTC::UDPSocket::Listener, public RTC::UDPSocket::Listener,
public RTC::TCPServer::Listener, public RTC::TCPServer::Listener,
...@@ -43,15 +43,13 @@ namespace RTC ...@@ -43,15 +43,13 @@ namespace RTC
} IceParameters; } IceParameters;
public: public:
ICETransport(Listener* listener, Json::Value& data); IceTransport(Listener* listener, Json::Value& data);
virtual ~ICETransport(); virtual ~IceTransport();
void Close(); void Close();
Json::Value toJson(); Json::Value toJson();
IceComponent GetIceComponent(); // TODO: needed?
IceParameters* GetIceLocalParameters(); // TODO: needed?
std::vector<IceCandidate>& GetIceLocalCandidates(); std::vector<IceCandidate>& GetIceLocalCandidates();
// ICETransport* CreateAssociatedGatherer(); // TODO: let's see. // IceTransport* CreateAssociatedGatherer(); // TODO: let's see.
/* Pure virtual methods inherited from RTC::ICEServer::Listener. */ /* Pure virtual methods inherited from RTC::ICEServer::Listener. */
public: public:
...@@ -95,14 +93,6 @@ namespace RTC ...@@ -95,14 +93,6 @@ namespace RTC
IceParameters iceLocalParameters; IceParameters iceLocalParameters;
std::vector<IceCandidate> iceLocalCandidates; std::vector<IceCandidate> iceLocalCandidates;
}; };
/* Inline methods. */
inline
ICETransport::IceParameters* ICETransport::GetIceLocalParameters()
{
return &(this->iceLocalParameters);
}
} }
#endif #endif
...@@ -12,34 +12,27 @@ namespace RTC ...@@ -12,34 +12,27 @@ namespace RTC
class IceCandidate class IceCandidate
{ {
public: public:
enum class IceComponent enum class Protocol
{
RTP = 1,
RTCP = 2
};
public:
enum class IceProtocol
{ {
UDP = 1, UDP = 1,
TCP TCP
}; };
public: public:
enum class IceCandidateType enum class CandidateType
{ {
HOST = 1 HOST = 1
}; };
public: public:
enum class IceTcpCandidateType enum class TcpCandidateType
{ {
PASSIVE = 1 PASSIVE = 1
}; };
public: public:
IceCandidate(RTC::UDPSocket* udpSocket); IceCandidate(RTC::UDPSocket* udpSocket, unsigned long priority);
IceCandidate(RTC::TCPServer* tcpServer); IceCandidate(RTC::TCPServer* tcpServer, unsigned long priority);
Json::Value toJson(); Json::Value toJson();
...@@ -48,59 +41,11 @@ namespace RTC ...@@ -48,59 +41,11 @@ namespace RTC
std::string foundation; std::string foundation;
unsigned long priority; unsigned long priority;
std::string ip; std::string ip;
IceProtocol protocol; Protocol protocol;
MS_PORT port; MS_PORT port;
IceCandidateType type; CandidateType type;
IceTcpCandidateType tcpType; TcpCandidateType tcpType;
}; };
/* Inline methods. */
inline
IceCandidate::IceCandidate(RTC::UDPSocket* udpSocket) :
foundation("udpcandidate"),
ip(udpSocket->GetLocalIP()),
protocol(IceProtocol::UDP),
port(udpSocket->GetLocalPort()),
type(IceCandidateType::HOST)
{}
inline
IceCandidate::IceCandidate(RTC::TCPServer* tcpServer) :
foundation("tcpcandidate"),
ip(tcpServer->GetLocalIP()),
protocol(IceProtocol::TCP),
port(tcpServer->GetLocalPort()),
type(IceCandidateType::HOST),
tcpType(IceTcpCandidateType::PASSIVE)
{}
inline
Json::Value IceCandidate::toJson()
{
Json::Value data;
data["foundation"] = this->foundation;
data["priority"] = (unsigned int)this->priority;
data["ip"] = this->ip;
data["port"] = this->port;
if (this->protocol == IceProtocol::UDP)
data["protocol"] = "udp";
else
data["protocol"] = "tcp";
if (this->type == IceCandidateType::HOST)
data["type"] = "host";
if (this->protocol == IceProtocol::TCP)
{
if (this->tcpType == IceTcpCandidateType::PASSIVE)
data["tcpType"] = "passive";
}
return data;
}
} }
#endif #endif
#ifndef MS_RTC_PEER_H #ifndef MS_RTC_PEER_H
#define MS_RTC_PEER_H #define MS_RTC_PEER_H
#include "RTC/ICETransport.h" #include "RTC/IceTransport.h"
#include "RTC/RTPPacket.h" #include "RTC/RTPPacket.h"
#include "RTC/RTCPPacket.h" #include "RTC/RTCPPacket.h"
#include "Channel/Request.h" #include "Channel/Request.h"
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
namespace RTC namespace RTC
{ {
class Peer : class Peer :
public RTC::ICETransport::Listener public RTC::IceTransport::Listener
{ {
public: public:
class Listener class Listener
...@@ -28,7 +28,7 @@ namespace RTC ...@@ -28,7 +28,7 @@ namespace RTC
Json::Value Dump(); Json::Value Dump();
void HandleRequest(Channel::Request* request); void HandleRequest(Channel::Request* request);
/* Pure virtual methods inherited from RTC::ICETransport::Listener. */ /* Pure virtual methods inherited from RTC::IceTransport::Listener. */
public: public:
// TODO // TODO
...@@ -41,7 +41,7 @@ namespace RTC ...@@ -41,7 +41,7 @@ namespace RTC
Listener* listener = nullptr; Listener* listener = nullptr;
// Others. // Others.
// TODO: it must be a unordered_map. // TODO: it must be a unordered_map.
RTC::ICETransport* iceTransport = nullptr; RTC::IceTransport* iceTransport = nullptr;
}; };
} }
......
#define MS_CLASS "RTC::Transport" #define MS_CLASS "RTC::IceTransport"
#include "RTC/ICETransport.h" #include "RTC/IceTransport.h"
#include "Settings.h" #include "Settings.h"
#include "Utils.h" #include "Utils.h"
#include "MediaSoupError.h" #include "MediaSoupError.h"
#include "Logger.h" #include "Logger.h"
#include <cmath> // std::pow()
#define ICE_CANDIDATE_PRIORITY_IPV4_UDP_RTP (std::pow(2, 24) * 64) + (std::pow(2, 8) * (10000 + 30000)) + (256 - 1)
#define ICE_CANDIDATE_PRIORITY_IPV6_UDP_RTP (std::pow(2, 24) * 64) + (std::pow(2, 8) * (10000 + 40000)) + (256 - 1)
#define ICE_CANDIDATE_PRIORITY_IPV4_TCP_RTP (std::pow(2, 24) * 64) + (std::pow(2, 8) * (5000 + 30000)) + (256 - 1)
#define ICE_CANDIDATE_PRIORITY_IPV6_TCP_RTP (std::pow(2, 24) * 64) + (std::pow(2, 8) * (5000 + 40000)) + (256 - 1)
#define ICE_CANDIDATE_PRIORITY_IPV4_UDP_RTCP (std::pow(2, 24) * 64) + (std::pow(2, 8) * (10000 + 30000)) + (256 - 2)
#define ICE_CANDIDATE_PRIORITY_IPV6_UDP_RTCP (std::pow(2, 24) * 64) + (std::pow(2, 8) * (10000 + 40000)) + (256 - 2)
#define ICE_CANDIDATE_PRIORITY_IPV4_TCP_RTCP (std::pow(2, 24) * 64) + (std::pow(2, 8) * (5000 + 30000)) + (256 - 2)
#define ICE_CANDIDATE_PRIORITY_IPV6_TCP_RTCP (std::pow(2, 24) * 64) + (std::pow(2, 8) * (5000 + 40000)) + (256 - 2)
namespace RTC namespace RTC
{ {
/* Instance methods. */ /* Instance methods. */
ICETransport::ICETransport(Listener* listener, Json::Value& data) : IceTransport::IceTransport(Listener* listener, Json::Value& data) :
listener(listener) listener(listener)
{ {
MS_TRACE(); MS_TRACE();
...@@ -45,13 +55,15 @@ namespace RTC ...@@ -45,13 +55,15 @@ namespace RTC
this->iceLocalParameters.usernameFragment = this->iceServer->GetUsernameFragment(); this->iceLocalParameters.usernameFragment = this->iceServer->GetUsernameFragment();
this->iceLocalParameters.password = this->iceServer->GetPassword(); this->iceLocalParameters.password = this->iceServer->GetPassword();
// TODO: We must check whether iceComponent is RTP or RTCP
// Open a IPv4 UDP socket. // Open a IPv4 UDP socket.
if (option_udp && Settings::configuration.hasIPv4) if (option_udp && Settings::configuration.hasIPv4)
{ {
try try
{ {
RTC::UDPSocket* udpSocket = RTC::UDPSocket::Factory(this, AF_INET); RTC::UDPSocket* udpSocket = RTC::UDPSocket::Factory(this, AF_INET);
RTC::IceCandidate iceCandidate(udpSocket); RTC::IceCandidate iceCandidate(udpSocket, ICE_CANDIDATE_PRIORITY_IPV4_UDP_RTP);
this->udpSockets.push_back(udpSocket); this->udpSockets.push_back(udpSocket);
this->iceLocalCandidates.push_back(iceCandidate); this->iceLocalCandidates.push_back(iceCandidate);
...@@ -68,7 +80,7 @@ namespace RTC ...@@ -68,7 +80,7 @@ namespace RTC
try try
{ {
RTC::UDPSocket* udpSocket = RTC::UDPSocket::Factory(this, AF_INET6); RTC::UDPSocket* udpSocket = RTC::UDPSocket::Factory(this, AF_INET6);
RTC::IceCandidate iceCandidate(udpSocket); RTC::IceCandidate iceCandidate(udpSocket, ICE_CANDIDATE_PRIORITY_IPV6_UDP_RTP);
this->udpSockets.push_back(udpSocket); this->udpSockets.push_back(udpSocket);
this->iceLocalCandidates.push_back(iceCandidate); this->iceLocalCandidates.push_back(iceCandidate);
...@@ -85,7 +97,7 @@ namespace RTC ...@@ -85,7 +97,7 @@ namespace RTC
try try
{ {
RTC::TCPServer* tcpServer = RTC::TCPServer::Factory(this, this, AF_INET); RTC::TCPServer* tcpServer = RTC::TCPServer::Factory(this, this, AF_INET);
RTC::IceCandidate iceCandidate(tcpServer); RTC::IceCandidate iceCandidate(tcpServer, ICE_CANDIDATE_PRIORITY_IPV4_TCP_RTP);
this->tcpServers.push_back(tcpServer); this->tcpServers.push_back(tcpServer);
this->iceLocalCandidates.push_back(iceCandidate); this->iceLocalCandidates.push_back(iceCandidate);
...@@ -102,7 +114,7 @@ namespace RTC ...@@ -102,7 +114,7 @@ namespace RTC
try try
{ {
RTC::TCPServer* tcpServer = RTC::TCPServer::Factory(this, this, AF_INET6); RTC::TCPServer* tcpServer = RTC::TCPServer::Factory(this, this, AF_INET6);
RTC::IceCandidate iceCandidate(tcpServer); RTC::IceCandidate iceCandidate(tcpServer, ICE_CANDIDATE_PRIORITY_IPV6_TCP_RTP);
this->tcpServers.push_back(tcpServer); this->tcpServers.push_back(tcpServer);
this->iceLocalCandidates.push_back(iceCandidate); this->iceLocalCandidates.push_back(iceCandidate);
...@@ -114,12 +126,12 @@ namespace RTC ...@@ -114,12 +126,12 @@ namespace RTC
} }
} }
ICETransport::~ICETransport() IceTransport::~IceTransport()
{ {
MS_TRACE(); MS_TRACE();
} }
void ICETransport::Close() void IceTransport::Close()
{ {
MS_TRACE(); MS_TRACE();
...@@ -144,17 +156,17 @@ namespace RTC ...@@ -144,17 +156,17 @@ namespace RTC
delete this; delete this;
} }
Json::Value ICETransport::toJson() Json::Value IceTransport::toJson()
{ {
MS_TRACE(); MS_TRACE();
static const Json::StaticString iceLocalParameters("iceLocalParameters"); static const Json::StaticString iceLocalParameters("iceLocalParameters");
static const Json::StaticString iceCandidates("iceCandidates"); static const Json::StaticString iceLocalCandidates("iceLocalCandidates");
Json::Value data; Json::Value data;
if (this->iceComponent == ICETransport::IceComponent::RTP) if (this->iceComponent == IceTransport::IceComponent::RTP)
data["iceComponent"] = "RTP"; data["iceComponent"] = "RTP";
else else
data["iceComponent"] = "RTCP"; data["iceComponent"] = "RTCP";
...@@ -162,24 +174,24 @@ namespace RTC ...@@ -162,24 +174,24 @@ namespace RTC
data[iceLocalParameters]["usernameFragment"] = this->iceLocalParameters.usernameFragment; data[iceLocalParameters]["usernameFragment"] = this->iceLocalParameters.usernameFragment;
data[iceLocalParameters]["password"] = this->iceLocalParameters.password; data[iceLocalParameters]["password"] = this->iceLocalParameters.password;
data[iceCandidates] = Json::arrayValue; data[iceLocalCandidates] = Json::arrayValue;
for (auto iceCandidate : this->iceLocalCandidates) for (auto iceCandidate : this->iceLocalCandidates)
{ {
data[iceCandidates].append(iceCandidate.toJson()); data[iceLocalCandidates].append(iceCandidate.toJson());
} }
return data; return data;
} }
void ICETransport::onOutgoingSTUNMessage(RTC::ICEServer* iceServer, RTC::STUNMessage* msg, RTC::TransportSource* source) void IceTransport::onOutgoingSTUNMessage(RTC::ICEServer* iceServer, RTC::STUNMessage* msg, RTC::TransportSource* source)
{ {
MS_TRACE(); MS_TRACE();
// TODO // TODO
} }
void ICETransport::onICEValidPair(RTC::ICEServer* iceServer, RTC::TransportSource* source, bool has_use_candidate) void IceTransport::onICEValidPair(RTC::ICEServer* iceServer, RTC::TransportSource* source, bool has_use_candidate)
{ {
MS_TRACE(); MS_TRACE();
...@@ -187,7 +199,7 @@ namespace RTC ...@@ -187,7 +199,7 @@ namespace RTC
} }
inline inline
void ICETransport::onSTUNDataRecv(RTC::TransportSource* source, const MS_BYTE* data, size_t len) void IceTransport::onSTUNDataRecv(RTC::TransportSource* source, const MS_BYTE* data, size_t len)
{ {
MS_TRACE(); MS_TRACE();
...@@ -195,7 +207,7 @@ namespace RTC ...@@ -195,7 +207,7 @@ namespace RTC
} }
inline inline
void ICETransport::onDTLSDataRecv(RTC::TransportSource* source, const MS_BYTE* data, size_t len) void IceTransport::onDTLSDataRecv(RTC::TransportSource* source, const MS_BYTE* data, size_t len)
{ {
MS_TRACE(); MS_TRACE();
...@@ -203,7 +215,7 @@ namespace RTC ...@@ -203,7 +215,7 @@ namespace RTC
} }
inline inline
void ICETransport::onRTPDataRecv(RTC::TransportSource* source, const MS_BYTE* data, size_t len) void IceTransport::onRTPDataRecv(RTC::TransportSource* source, const MS_BYTE* data, size_t len)
{ {
MS_TRACE(); MS_TRACE();
...@@ -211,14 +223,14 @@ namespace RTC ...@@ -211,14 +223,14 @@ namespace RTC
} }
inline inline
void ICETransport::onRTCPDataRecv(RTC::TransportSource* source, const MS_BYTE* data, size_t len) void IceTransport::onRTCPDataRecv(RTC::TransportSource* source, const MS_BYTE* data, size_t len)
{ {
MS_TRACE(); MS_TRACE();
// TODO // TODO
} }
void ICETransport::onSTUNDataRecv(RTC::UDPSocket *socket, const MS_BYTE* data, size_t len, const struct sockaddr* remote_addr) void IceTransport::onSTUNDataRecv(RTC::UDPSocket *socket, const MS_BYTE* data, size_t len, const struct sockaddr* remote_addr)
{ {
MS_TRACE(); MS_TRACE();
...@@ -226,7 +238,7 @@ namespace RTC ...@@ -226,7 +238,7 @@ namespace RTC
onSTUNDataRecv(&source, data, len); onSTUNDataRecv(&source, data, len);
} }
void ICETransport::onDTLSDataRecv(RTC::UDPSocket *socket, const MS_BYTE* data, size_t len, const struct sockaddr* remote_addr) void IceTransport::onDTLSDataRecv(RTC::UDPSocket *socket, const MS_BYTE* data, size_t len, const struct sockaddr* remote_addr)
{ {
MS_TRACE(); MS_TRACE();
...@@ -234,7 +246,7 @@ namespace RTC ...@@ -234,7 +246,7 @@ namespace RTC
onDTLSDataRecv(&source, data, len); onDTLSDataRecv(&source, data, len);
} }
void ICETransport::onRTPDataRecv(RTC::UDPSocket *socket, const MS_BYTE* data, size_t len, const struct sockaddr* remote_addr) void IceTransport::onRTPDataRecv(RTC::UDPSocket *socket, const MS_BYTE* data, size_t len, const struct sockaddr* remote_addr)
{ {
MS_TRACE(); MS_TRACE();
...@@ -242,7 +254,7 @@ namespace RTC ...@@ -242,7 +254,7 @@ namespace RTC
onRTPDataRecv(&source, data, len); onRTPDataRecv(&source, data, len);
} }
void ICETransport::onRTCPDataRecv(RTC::UDPSocket *socket, const MS_BYTE* data, size_t len, const struct sockaddr* remote_addr) void IceTransport::onRTCPDataRecv(RTC::UDPSocket *socket, const MS_BYTE* data, size_t len, const struct sockaddr* remote_addr)
{ {
MS_TRACE(); MS_TRACE();
...@@ -250,7 +262,7 @@ namespace RTC ...@@ -250,7 +262,7 @@ namespace RTC
onRTCPDataRecv(&source, data, len); onRTCPDataRecv(&source, data, len);
} }
void ICETransport::onRTCTCPConnectionClosed(RTC::TCPServer* tcpServer, RTC::TCPConnection* connection, bool is_closed_by_peer) void IceTransport::onRTCTCPConnectionClosed(RTC::TCPServer* tcpServer, RTC::TCPConnection* connection, bool is_closed_by_peer)
{ {
MS_TRACE(); MS_TRACE();
...@@ -263,7 +275,7 @@ namespace RTC ...@@ -263,7 +275,7 @@ namespace RTC
// } // }
} }
void ICETransport::onSTUNDataRecv(RTC::TCPConnection *connection, const MS_BYTE* data, size_t len) void IceTransport::onSTUNDataRecv(RTC::TCPConnection *connection, const MS_BYTE* data, size_t len)
{ {
MS_TRACE(); MS_TRACE();
...@@ -271,7 +283,7 @@ namespace RTC ...@@ -271,7 +283,7 @@ namespace RTC
onSTUNDataRecv(&source, data, len); onSTUNDataRecv(&source, data, len);
} }
void ICETransport::onDTLSDataRecv(RTC::TCPConnection *connection, const MS_BYTE* data, size_t len) void IceTransport::onDTLSDataRecv(RTC::TCPConnection *connection, const MS_BYTE* data, size_t len)
{ {
MS_TRACE(); MS_TRACE();
...@@ -279,7 +291,7 @@ namespace RTC ...@@ -279,7 +291,7 @@ namespace RTC
onDTLSDataRecv(&source, data, len); onDTLSDataRecv(&source, data, len);
} }
void ICETransport::onRTPDataRecv(RTC::TCPConnection *connection, const MS_BYTE* data, size_t len) void IceTransport::onRTPDataRecv(RTC::TCPConnection *connection, const MS_BYTE* data, size_t len)
{ {
MS_TRACE(); MS_TRACE();
...@@ -287,7 +299,7 @@ namespace RTC ...@@ -287,7 +299,7 @@ namespace RTC
onRTPDataRecv(&source, data, len); onRTPDataRecv(&source, data, len);
} }
void ICETransport::onRTCPDataRecv(RTC::TCPConnection *connection, const MS_BYTE* data, size_t len) void IceTransport::onRTCPDataRecv(RTC::TCPConnection *connection, const MS_BYTE* data, size_t len)
{ {
MS_TRACE(); MS_TRACE();
......
#define MS_CLASS "RTC::IceCandidate"
#include "RTC/IceCandidate.h"
namespace RTC
{
/* Instance methods. */
IceCandidate::IceCandidate(RTC::UDPSocket* udpSocket, unsigned long priority) :
foundation("udpcandidate"),
priority(priority),
ip(udpSocket->GetLocalIP()),
protocol(Protocol::UDP),
port(udpSocket->GetLocalPort()),
type(CandidateType::HOST)
{}
IceCandidate::IceCandidate(RTC::TCPServer* tcpServer, unsigned long priority) :
foundation("tcpcandidate"),
priority(priority),
ip(tcpServer->GetLocalIP()),
protocol(Protocol::TCP),
port(tcpServer->GetLocalPort()),
type(CandidateType::HOST),
tcpType(TcpCandidateType::PASSIVE)
{}
Json::Value IceCandidate::toJson()
{
Json::Value data;
data["foundation"] = this->foundation;
data["priority"] = (unsigned int)this->priority;
data["ip"] = this->ip;
data["port"] = this->port;
switch (this->type)
{
case CandidateType::HOST:
data["type"] = "host";
break;
}
switch (this->protocol)
{
case Protocol::UDP:
data["protocol"] = "udp";
break;
case Protocol::TCP:
data["protocol"] = "tcp";
switch (this->tcpType)
{
case TcpCandidateType::PASSIVE:
data["tcpType"] = "passive";
break;
}
break;
}
return data;
}
}
...@@ -60,7 +60,7 @@ namespace RTC ...@@ -60,7 +60,7 @@ namespace RTC
{ {
try try
{ {
this->iceTransport = new RTC::ICETransport(this, request->data); this->iceTransport = new RTC::IceTransport(this, request->data);
} }
catch (const MediaSoupError &error) catch (const MediaSoupError &error)
{ {
......
...@@ -153,15 +153,15 @@ void Settings::PrintConfiguration() ...@@ -153,15 +153,15 @@ void Settings::PrintConfiguration()
else else
MS_DEBUG("rtcListenIPv4: (unavailable)"); MS_DEBUG("rtcListenIPv4: (unavailable)");
if (Settings::configuration.hasIPv6) if (Settings::configuration.hasIPv6)
MS_DEBUG("- rtcListenIPv6: \"%s\"", Settings::configuration.rtcListenIPv6.c_str()); MS_DEBUG("rtcListenIPv6: \"%s\"", Settings::configuration.rtcListenIPv6.c_str());
else else
MS_DEBUG("rtcListenIPv6: (unavailable)"); MS_DEBUG("rtcListenIPv6: (unavailable)");
MS_DEBUG("rtcMinPort: %d", Settings::configuration.rtcMinPort); MS_DEBUG("rtcMinPort: %d", Settings::configuration.rtcMinPort);
MS_DEBUG("rtcMaxPort: %d", Settings::configuration.rtcMaxPort); MS_DEBUG("rtcMaxPort: %d", Settings::configuration.rtcMaxPort);
if (!Settings::configuration.dtlsCertificateFile.empty()) if (!Settings::configuration.dtlsCertificateFile.empty())
{ {
MS_DEBUG("- dtlsCertificateFile: \"%s\"", Settings::configuration.dtlsCertificateFile.c_str()); MS_DEBUG("dtlsCertificateFile: \"%s\"", Settings::configuration.dtlsCertificateFile.c_str());
MS_DEBUG("- dtlsPrivateKeyFile: \"%s\"", Settings::configuration.dtlsPrivateKeyFile.c_str()); MS_DEBUG("dtlsPrivateKeyFile: \"%s\"", Settings::configuration.dtlsPrivateKeyFile.c_str());
} }
MS_DEBUG("</configuration>"); MS_DEBUG("</configuration>");
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论