Instance Methodswift-nio 2.72.0NIOCore
triggerUserOutboundEvent(_:file:line:)
Trigger a custom user outbound event which will flow through the ChannelPipeline
.
- iOS
- 13+
- macOS
- 10.15+
- tvOS
- 13+
- watchOS
- 6+
func triggerUserOutboundEvent(_ event: Any, file: StaticString = #fileID, line: UInt = #line) async throws
Parameters
- event
the event itself.
Returns
the future which will be notified once the operation completes.
Other members in extension
Instance members
func bind(to: SocketAddress, file: StaticString, line: UInt
) -> EventLoopFuture<Void> Bind to a
SocketAddress
.func bind(to: SocketAddress, file: StaticString, line: UInt
) async throws Bind to a
SocketAddress
.func close(mode: CloseMode, file: StaticString, line: UInt
) -> EventLoopFuture<Void> Close the
Channel
and so the connection if one exists.func close(mode: CloseMode, file: StaticString, line: UInt
) async throws Close the
Channel
and so the connection if one exists.func connect(to: SocketAddress, file: StaticString, line: UInt
) -> EventLoopFuture<Void> Connect to a
SocketAddress
.func connect(to: SocketAddress, file: StaticString, line: UInt
) async throws Connect to a
SocketAddress
.func register(file: StaticString, line: UInt
) -> EventLoopFuture<Void> Register on an
EventLoop
and so have all its IO handled.func register(file: StaticString, line: UInt
) async throws Register on an
EventLoop
and so have all its IO handled.func triggerUserOutboundEvent(Any, file: StaticString, line: UInt
) -> EventLoopFuture<Void> Trigger a custom user outbound event which will flow through the
ChannelPipeline
.func write(NIOAny, file: StaticString, line: UInt
) -> EventLoopFuture<Void> Write data to the remote peer.
func writeAndFlush(NIOAny, file: StaticString, line: UInt
) -> EventLoopFuture<Void> Shortcut for calling
write
andflush
.func writeAndFlush(NIOAny, file: StaticString, line: UInt
) async throws Shortcut for calling
write
andflush
.