_ChannelOutboundHandler
Untyped ChannelHandler
which handles outbound I/O events or intercept an outbound I/O operation.
protocol _ChannelOutboundHandler : ChannelHandler
Browse conforming typesDespite the fact that write
is one of the methods on this protocol, you should avoid assuming that “outbound” events are to do with writing to channel sources. Instead, “outbound” events are events that are passed to the channel source (e.g. a socket): that is, things you tell the channel source to do. That includes write
(“write this data to the channel source”), but it also includes read
(“please begin attempting to read from the channel source”) and bind
(“please bind the following address”), which have nothing to do with sending data.
We strongly advise against implementing this protocol directly. Please implement ChannelOutboundHandler
.