objcio/swift-talk-backend

Which part of the source code is considered the bootstrapping of Swift-NIO?

TyrfingMjolnir opened this issue · 0 comments

Which part of the source code is considered the bootstrapping of Swift-NIO?

The part where one can set if Swift NIO is to use

  1. IPv4
  2. IPv6
  3. Both: try bootstrap.connect( host: host, port: port ).wait()
  4. Unix Domain Sockets: try bootstrap.connect( unixDomainSocketPath: path ).wait()

https://apple.github.io/swift-nio/docs/current/NIO/Enums/SocketAddress.html
https://apple.github.io/swift-nio/docs/current/NIO/Classes/ServerBootstrap.html

Got it! https://github.com/objcio/swift-talk-backend/blob/master/Sources/NIOWrapper/NIOWrapper.swift#L243-L262

Don't you proxy your stuff?

find /opt/local/dev/swift-talk-backend -type f -exec grep ServerBootstrap {} \; -print