SIPSorcery.SIP.SIPEndPoint.GetIPEndPoint C# (CSharp) Method

GetIPEndPoint() public method

public GetIPEndPoint ( ) : IPEndPoint
return System.Net.IPEndPoint
        public IPEndPoint GetIPEndPoint()
        {
            return new IPEndPoint(Address, Port);
        }

Usage Example

Example #1
0
        /// <summary>
        /// Gets fired when a suspected SIP message is extracted from the TCP data stream.
        /// </summary>
        protected void SIPTCPMessageReceived(SIPChannel channel, SIPEndPoint remoteEndPoint, byte[] buffer)
        {
            if (m_connectionFailures.ContainsKey(remoteEndPoint.GetIPEndPoint().ToString()))
            {
                m_connectionFailures.Remove(remoteEndPoint.GetIPEndPoint().ToString());
            }

            if (m_connectionFailureStrikes.ContainsKey(remoteEndPoint.GetIPEndPoint().ToString()))
            {
                m_connectionFailureStrikes.Remove(remoteEndPoint.GetIPEndPoint().ToString());
            }

            SIPMessageReceived?.Invoke(channel, remoteEndPoint, buffer);
        }
All Usage Examples Of SIPSorcery.SIP.SIPEndPoint::GetIPEndPoint