SwiftNIO – Introduction to Channels, ChannelHandlers and Pipelines

General News

Summary

They are responsible for many things in SwiftNIO: At this stage, the central role of channel may seem quite difficult to understand, but you will get a more concrete view as we progress through our example. Here we clearly see that the connection was refused: But if the DNS resolution fails because the host does not exist (for example using localhost2), you would also get a different and relevant error: In the current state, the code is of little help. It lets you access important properties, like the channel itself, so that you can for example write back data, going through the outbound sequence of handlers. Using that trick, that server is playing a ASCII art animated version of * Star Wars, Episode IV*, recreated with manual layout. Even if you do not run the code from an ANSI compliant terminal, you should be able to see all the pages printed at the bottom of your log file and get of feel of the animation.

Classifications

industries
No industries detected
applications
Collaboration & Communication

AskAI Classifications

Labels
Software Messaging Software SaaS

Linked Companies

ProcessOne
$1M to $5M
GitHub, Inc.
$1M to $5M