TCPConvenienceOption
public struct TCPConvenienceOption : Hashable
A TCP channel option which can be applied to a bootstrap using convenience notation.
-
Allow immediately reusing a local address.
Declaration
Swift
public static let allowLocalEndpointReuse: ChannelOptions.TCPConvenienceOption
-
The user will manually call
Channel.read
once all the data is read from the transport.Declaration
Swift
public static let disableAutoRead: ChannelOptions.TCPConvenienceOption
-
Allows users to configure whether the
Channel
will close itself when its remote peer shuts down its send stream, or whether it will remain open. If set tofalse
(the default), theChannel
will be closed automatically if the remote peer shuts down its send stream. If set to true, theChannel
will not be closed: instead, aChannelEvent.inboundClosed
user event will be sent on theChannelPipeline
, and no more data will be received.Declaration
Swift
public static let allowRemoteHalfClosure: ChannelOptions.TCPConvenienceOption