From 6b0903aa5fb68d47ee5ce3ee634d3153b8e9e4a6 Mon Sep 17 00:00:00 2001 From: xiongziliang <771730766@qq.com> Date: Sun, 28 Nov 2021 21:19:08 +0800 Subject: [PATCH] =?UTF-8?q?Refine:=20=E7=B2=BE=E7=AE=80=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/main.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/server/main.cpp b/server/main.cpp index 3dc74243..0842f321 100644 --- a/server/main.cpp +++ b/server/main.cpp @@ -246,28 +246,28 @@ int start_main(int argc,char *argv[]) { //简单的telnet服务器,可用于服务器调试,但是不能使用23端口,否则telnet上了莫名其妙的现象 //测试方法:telnet 127.0.0.1 9000 - TcpServer::Ptr shellSrv = std::make_shared(); + auto shellSrv = std::make_shared(); //rtsp[s]服务器, 可用于诸如亚马逊echo show这样的设备访问 - TcpServer::Ptr rtspSrv = std::make_shared();; - TcpServer::Ptr rtspSSLSrv = std::make_shared();; + auto rtspSrv = std::make_shared();; + auto rtspSSLSrv = std::make_shared();; //rtmp[s]服务器 - TcpServer::Ptr rtmpSrv = std::make_shared();; - TcpServer::Ptr rtmpsSrv = std::make_shared();; + auto rtmpSrv = std::make_shared();; + auto rtmpsSrv = std::make_shared();; //http[s]服务器 - TcpServer::Ptr httpSrv = std::make_shared();; - TcpServer::Ptr httpsSrv = std::make_shared();; + auto httpSrv = std::make_shared();; + auto httpsSrv = std::make_shared();; #if defined(ENABLE_RTPPROXY) //GB28181 rtp推流端口,支持UDP/TCP - RtpServer::Ptr rtpServer = std::make_shared(); + auto rtpServer = std::make_shared(); #endif//defined(ENABLE_RTPPROXY) #if defined(ENABLE_WEBRTC) //webrtc udp服务器 - UdpServer::Ptr rtcSrv = std::make_shared(); + auto rtcSrv = std::make_shared(); rtcSrv->setOnCreateSocket([](const EventPoller::Ptr &poller, const Buffer::Ptr &buf, struct sockaddr *, int) { if (!buf) { return Socket::createSocket(poller, false);