SIPSorcery.SIP.SIPTLSChannel.Initialise C# (CSharp) Method

Initialise() private method

private Initialise ( ) : void
return void
        private void Initialise()
        {
            try
            {
                m_tlsServerListener = new TcpListener(m_localSIPEndPoint.GetIPEndPoint());
                m_tlsServerListener.Server.SetSocketOption(SocketOptionLevel.Socket, SocketOptionName.ReuseAddress, true);

                m_tlsServerListener.Start(MAX_TLS_CONNECTIONS);

                ThreadPool.QueueUserWorkItem(delegate { AcceptConnections(ACCEPT_THREAD_NAME + m_localSIPEndPoint.Port); });
                ThreadPool.QueueUserWorkItem(delegate { PruneConnections(PRUNE_THREAD_NAME + m_localSIPEndPoint.Port); });

                logger.Debug("SIP TLS Channel listener created " + m_localSIPEndPoint.GetIPEndPoint() + ".");
            }
            catch (Exception excp)
            {
                logger.Error("Exception SIPTLSChannel Initialise. " + excp);
                throw;
            }
        }