mirror of
https://github.com/apple/swift-nio
synced 2026-11-24 04:37:54 +00:00
Motivation: In some contexts it is important to be able to pass file descriptors around instead of specifying the particular host and port. This allows removing certain windows for race conditions, and has positive security implications. Modifications: Added `withConnectedSocket(_:)` call to the `ClientBootstrap` that can be used to create a new `Channel` out of existing file descriptor representing the connected socket. Result: Allows initializing `Channel`s off the existing file descriptors.