Class ServerTransportDefaults
- Namespace
- VpnHood.Core.Common.Configuration
- Assembly
- VpnHood.Core.Common.dll
Provides the transport defaults the server alone applies, where its configuration, which comes from the access manager, gives none.
public static class ServerTransportDefaults
- Inheritance
-
ServerTransportDefaults
- Inherited Members
Remarks
The settable ones are the process's, read when the server needs them. A null buffer size leaves the socket at the system's default.
Properties
ClientRequestTimeoutDelta
Gets or sets the margin the server gives a client's timeouts in the session's hello: the client waits for a request this much longer than the server's TCP connect timeout, and closes an idle channel this much sooner than the server's idle timeout. The default is 10 seconds.
public static TimeSpan ClientRequestTimeoutDelta { get; set; }
Property Value
StreamForwardingBufferSize
Gets the buffer sizes of a TCP connection the server forwards: about 8 KB (8,191 bytes) each way.
public static TransferBufferSize StreamForwardingBufferSize { get; }
Property Value
StreamPacketBufferSize
Gets the buffer sizes of a stream packet channel: about 16 KB (16,383 bytes) each way.
public static TransferBufferSize StreamPacketBufferSize { get; }
Property Value
TcpKernelBufferSize
Gets or sets the kernel buffer sizes of the TCP sockets the server accepts, or null for the system's.
public static TransferBufferSize? TcpKernelBufferSize { get; set; }
Property Value
UdpChannelBufferSize
Gets or sets the buffer sizes of the UDP channel's socket, or null for the system's.
public static TransferBufferSize? UdpChannelBufferSize { get; set; }
Property Value
UdpForwardingBufferSize
Gets or sets the buffer sizes of the sockets of forwarded UDP, or null for the system's.
public static TransferBufferSize? UdpForwardingBufferSize { get; set; }
Property Value
VirtualIpNetworkV4
Gets the IPv4 network the server gives its clients' virtual addresses from, 10.240.0.0/12; a client is
told its address in the session's hello.
public static IpNetwork VirtualIpNetworkV4 { get; }
Property Value
VirtualIpNetworkV6
Gets the IPv6 network the server gives its clients' virtual addresses from, fd12:2020::/48.
public static IpNetwork VirtualIpNetworkV6 { get; }