Table of Contents

Constructor TcpStreamSettings

Namespace
MongoDB.Driver.Core.Configuration
Assembly
MongoDB.Driver.dll

TcpStreamSettings(Optional<AddressFamily>, Optional<TimeSpan>, Optional<TimeSpan?>, Optional<int>, Optional<int>, Optional<Action<Socket>>, Optional<TimeSpan?>)

Initializes a new instance of the TcpStreamSettings class.

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<AddressFamily>

The address family.

connectTimeout Optional<TimeSpan>

The connect timeout.

readTimeout Optional<TimeSpan?>

The read timeout.

receiveBufferSize Optional<int>

Size of the receive buffer.

sendBufferSize Optional<int>

Size of the send buffer.

socketConfigurator Optional<Action<Socket>>

The socket configurator.

writeTimeout Optional<TimeSpan?>

The write timeout.