2019-01-13 19:26:15 +00:00
|
|
|
|
using System.Globalization;
|
2018-12-27 23:27:57 +00:00
|
|
|
|
|
|
|
|
|
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);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|