Class TcpStreamSettings
- Namespace
- MongoDB.Driver.Core.Configuration
- Assembly
- MongoDB.Driver.dll
Represents settings for a TCP stream.
public class TcpStreamSettings
- Inheritance
-
TcpStreamSettings
- Inherited Members
Constructors
- TcpStreamSettings(Optional<AddressFamily>, Optional<TimeSpan>, Optional<TimeSpan?>, Optional<int>, Optional<int>, Optional<Action<Socket>>, Optional<TimeSpan?>)
Initializes a new instance of the TcpStreamSettings class.
Properties
- AddressFamily
Gets the address family.
- ConnectTimeout
Gets the connect timeout.
- ReadTimeout
Gets the read timeout.
- ReceiveBufferSize
Gets the size of the receive buffer.
- SendBufferSize
Gets the size of the send buffer.
- SocketConfigurator
Gets the socket configurator.
- UseOperatingSystemBufferSizes
Gets a value indicating whether the socket buffer sizes are left at the operating system defaults. When true, ReceiveBufferSize and SendBufferSize are ignored.
- WriteTimeout
Gets the write timeout.
Methods
- With(Optional<AddressFamily>, Optional<TimeSpan>, Optional<TimeSpan?>, Optional<int>, Optional<int>, Optional<Action<Socket>>, Optional<TimeSpan?>)
Returns a new TcpStreamSettings instance with some settings changed.
- WithUseOperatingSystemBufferSizes(bool)
Returns a new TcpStreamSettings instance with UseOperatingSystemBufferSizes changed.