You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
using System;
|
|
|
|
|
using System.Globalization;
|
|
|
|
|
|
|
|
|
|
namespace MediaBrowser.Model.Net
|
|
|
|
|
{
|
|
|
|
|
public class IpEndPointInfo
|
|
|
|
|
{
|
|
|
|
|
public IpAddressInfo IpAddress { get; set; }
|
|
|
|
|
|
|
|
|
|
public int Port { get; set; }
|
|
|
|
|
|
|
|
|
|
public IpEndPointInfo()
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public IpEndPointInfo(IpAddressInfo address, int port)
|
|
|
|
|
{
|
|
|
|
|
IpAddress = address;
|
|
|
|
|
Port = port;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override string ToString()
|
|
|
|
|
{
|
|
|
|
|
var ipAddresString = IpAddress == null ? string.Empty : IpAddress.ToString();
|
|
|
|
|
|
|
|
|
|
return ipAddresString + ":" + Port.ToString(CultureInfo.InvariantCulture);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|