SIPSorcery.SIP.SIPUDPChannel.Send C# (CSharp) Method

Send() public method

public Send ( IPEndPoint destinationEndPoint, byte buffer ) : void
destinationEndPoint System.Net.IPEndPoint
buffer byte
return void
        public override void Send(IPEndPoint destinationEndPoint, byte[] buffer)
        {
            try
            {
                if (destinationEndPoint == null)
                {
                    throw new ApplicationException("An empty destination was specified to Send in SIPUDPChannel.");
                }
                else
                {
                    m_sipConn.Send(buffer, buffer.Length, destinationEndPoint);
                }
            }
            catch (Exception excp)
            {
                logger.Error("Exception (" + excp.GetType().ToString() + ") SIPUDPChannel Send (sendto=>" + IPSocket.GetSocketString(destinationEndPoint) + "). " + excp.Message);
                throw excp;
            }
        }

Same methods

SIPUDPChannel::Send ( IPEndPoint dstEndPoint, byte buffer, string serverCertificateName ) : void
SIPUDPChannel::Send ( IPEndPoint destinationEndPoint, string message ) : void