using Apewer;
using System;
using System.Collections.Generic;
using System.Net.Sockets;
using System.Text;
namespace Apewer.Network
{
///
public struct SocketEndPoint
{
internal SocketEndPoint(Socket socket, string ip, int port)
{
Socket = socket;
IP = ip ?? TextUtility.EmptyString;
Port = NumberUtility.RestrictValue(port, 0, ushort.MaxValue);
}
///
public Socket Socket { get; }
///
public string IP { get; }
///
public int Port { get; }
}
}