Instance Property (Default implementation)swift-nio 2.81.0NIOCore
syncOptions
Default implementation: NIOSynchronousChannelOptions
are not supported.
var syncOptions: NIOSynchronousChannelOptions? { get }
Default implementation: NIOSynchronousChannelOptions
are not supported.
var syncOptions: NIOSynchronousChannelOptions? { get }
s7NIOCore7ChannelPAAE11syncOptionsAA014NIOSynchronousbD0_pSgvp
What are these?67JBI
import NIOCore
The core abstractions that make up SwiftNIO.
protocol Channel : AnyObject, ChannelOutboundInvoker, _NIOPreconcurrencySendable
A Channel
is easiest thought of as a network socket. But it can be anything that is capable of I/O operations such as read, write, connect, and bind.
protocol NIOSynchronousChannelOptions
var syncOptions: NIOSynchronousChannelOptions? { get }
Returns a view of the Channel
exposing synchronous versions of setOption
and getOption
. The default implementation returns nil
, and Channel
implementations must opt in to support this behavior.
func bind(to address: SocketAddress, promise: EventLoopPromise<Void>?)
func close(mode: CloseMode = .all, promise: EventLoopPromise<Void>?)
func connect(to address: SocketAddress, promise: EventLoopPromise<Void>?)
func flush()
func getOption<Option>(_ option: Option) async throws -> Option.Value where Option : ChannelOption
Get the value of option
for this Channel
.
func read()
func register(promise: EventLoopPromise<Void>?)
func registerAlreadyConfigured0(promise: EventLoopPromise<Void>?)
func setOption<Option>(_ option: Option, value: Option.Value) async throws where Option : ChannelOption
Set option
to value
on this Channel
.
@preconcurrency func triggerUserOutboundEvent(_ event: Sendable, promise: EventLoopPromise<Void>?)
@preconcurrency func write<T>(_ any: T) -> EventLoopFuture<Void> where T : Sendable
Write data into the Channel
.
func write<T>(_ data: T, promise: EventLoopPromise<Void>?) where T : Sendable
@preconcurrency func writeAndFlush<T>(_ any: T) -> EventLoopFuture<Void> where T : Sendable
Write and flush data into the Channel
.
@preconcurrency func writeAndFlush<T>(_ data: T) async throws where T : Sendable
Shortcut for calling write
and flush
.
func writeAndFlush<T>(_ data: T, promise: EventLoopPromise<Void>?) where T : Sendable
func write(_ data: NIOAny, promise: EventLoopPromise<Void>?)
func writeAndFlush(_ data: NIOAny, promise: EventLoopPromise<Void>?)