Class UpstreamSocketContext
Context handed to a ConfigureUpstreamSocket callback.
public sealed class UpstreamSocketContext
- Inheritance
-
UpstreamSocketContext
- Inherited Members
Constructors
UpstreamSocketContext(Socket, string, int, IPEndPoint)
public UpstreamSocketContext(Socket socket, string requestedHost, int requestedPort, IPEndPoint remoteEndPoint)
Parameters
socketSocketrequestedHoststringrequestedPortintremoteEndPointIPEndPoint
Properties
RemoteEndPoint
The endpoint fluxzy will connect to. The upstream proxy when chaining, otherwise the destination.
public IPEndPoint RemoteEndPoint { get; }
Property Value
RequestedHost
Host (domain or IP literal) as requested by the client.
public string RequestedHost { get; }
Property Value
RequestedPort
Port as requested by the client.
public int RequestedPort { get; }
Property Value
Socket
The upstream socket, not yet connected. Safe to set options or bind.
public Socket Socket { get; }