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
addressFamilyOptional<AddressFamily>The address family.
connectTimeoutOptional<TimeSpan>The connect timeout.
readTimeoutOptional<TimeSpan?>The read timeout.
receiveBufferSizeOptional<int>Size of the receive buffer.
sendBufferSizeOptional<int>Size of the send buffer.
socketConfiguratorOptional<Action<Socket>>The socket configurator.
writeTimeoutOptional<TimeSpan?>The write timeout.