OctoTorrent.UdpListener.Send C# (CSharp) Method

Send() public method

public Send ( byte buffer, IPEndPoint endpoint ) : void
buffer byte
endpoint System.Net.IPEndPoint
return void
        public virtual void Send(byte[] buffer, IPEndPoint endpoint)
        {
            try
            {
               if (endpoint.Address != IPAddress.Any)
                    _client.Send(buffer, buffer.Length, endpoint);
            }
            catch (Exception ex)
            {
                Logger.Log(null, "UdpListener could not send message: {0}", ex);
            }
        }