Click or drag to resize

TcpStreamSettings Constructor

Initializes a new instance of the TcpStreamSettings class.

Namespace:  MongoDB.Driver.Core.Configuration
Assembly:  MongoDB.Driver.Core (in MongoDB.Driver.Core.dll) Version: 2.22.0+75246110ed1247226fcc7f8eb2c54ffab745693e
Syntax
public TcpStreamSettings(
	Optional<AddressFamily> addressFamily = default,
	Optional<TimeSpan> connectTimeout = default,
	Optional<TimeSpan?> readTimeout = default,
	Optional<int> receiveBufferSize = default,
	Optional<int> sendBufferSize = default,
	Optional<Action<Socket>> socketConfigurator = default,
	Optional<TimeSpan?> writeTimeout = default
)

Parameters

addressFamily (Optional)
Type: MongoDB.DriverOptionalAddressFamily
The address family.
connectTimeout (Optional)
Type: MongoDB.DriverOptionalTimeSpan
The connect timeout.
readTimeout (Optional)
Type: MongoDB.DriverOptionalNullableTimeSpan
The read timeout.
receiveBufferSize (Optional)
Type: MongoDB.DriverOptionalInt32
Size of the receive buffer.
sendBufferSize (Optional)
Type: MongoDB.DriverOptionalInt32
Size of the send buffer.
socketConfigurator (Optional)
Type: MongoDB.DriverOptionalActionSocket
The socket configurator.
writeTimeout (Optional)
Type: MongoDB.DriverOptionalNullableTimeSpan
The write timeout.
See Also