Table of Contents

Class UpstreamSocketContext

Namespace
Fluxzy.Core
Assembly
Fluxzy.Core.dll

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

socket Socket
requestedHost string
requestedPort int
remoteEndPoint IPEndPoint

Properties

RemoteEndPoint

The endpoint fluxzy will connect to. The upstream proxy when chaining, otherwise the destination.

public IPEndPoint RemoteEndPoint { get; }

Property Value

IPEndPoint

RequestedHost

Host (domain or IP literal) as requested by the client.

public string RequestedHost { get; }

Property Value

string

RequestedPort

Port as requested by the client.

public int RequestedPort { get; }

Property Value

int

Socket

The upstream socket, not yet connected. Safe to set options or bind.

public Socket Socket { get; }

Property Value

Socket