using System.Net.Sockets;
using System.Net;
namespace Uwaa.HTTP;
///
/// Information about a client which connected to a .
///
public class HttpClientInfo
{
///
/// The TCP client sending this request.
///
public readonly TcpClient TcpClient;
///
/// The IP address and port of the requester.
///
public readonly IPEndPoint Endpoint;
///
/// If true, the request is connected.
///
public bool Connected => TcpClient.Connected;
internal HttpClientInfo(TcpClient client, IPEndPoint endpoint)
{
TcpClient = client;
Endpoint = endpoint;
}
}