26 lines
799 B
C#
26 lines
799 B
C#
using System.IO;
|
|
using System.Net;
|
|
|
|
namespace ln.http
|
|
{
|
|
public class HttpConnection
|
|
{
|
|
public Stream ClientStream { get; }
|
|
public IPEndPoint RemoteEndPoint { get; }
|
|
public IPEndPoint LocalEndPoint { get; }
|
|
|
|
public bool IsEncrypted { get; }
|
|
|
|
public HttpConnection(IPEndPoint localEndPoint, IPEndPoint remoteEndPoint, Stream clientStream)
|
|
:this(localEndPoint, remoteEndPoint, clientStream, false)
|
|
{}
|
|
|
|
public HttpConnection(IPEndPoint localEndPoint, IPEndPoint remoteEndPoint, Stream clientStream, bool isEncrypted)
|
|
{
|
|
ClientStream = clientStream;
|
|
LocalEndPoint = localEndPoint;
|
|
RemoteEndPoint = remoteEndPoint;
|
|
IsEncrypted = isEncrypted;
|
|
}
|
|
}
|
|
} |