A collection of socket utilities in pure Swift
SwifterSockets is part of the Swiftfire webserver project.
The reference manual
SwifterSockets is also used in our PortSpy application in the App Store. Buyers of PortSpy get the complete sources of the project (Xcode project) used to build the App.
If you need secure connections, check out SecureSockets which is build on top of SwifterSockets (and OpenSSL).
If you are new to socket programming, check out our blog series which starts here
SwifterSockets can be used by the Swift Package Manager. Just add it to your package manifest as a dependency.
Alternatively you can clone the project and generate a Xcode framework in the following way:
First clone the repository and create a Xcode project:
$ git clone https://github.com/Balancingrock/SwifterSockets $ cd SwifterSockets $ swift package generate-xcodeproj
Double click that project to open it. Once open set the
Defines Module to 'yes' in the
Build Settings before creating the framework. (Otherwise the import of the framework in another project won't work)
In the project that will use SwifterSockets, add the SwifterSockets.framework by opening the
General settings of the target and add the SwifterSockets.framework to the
In the Swift source code where you want to use it, import SwifterSockets at the top of the file.
No new features planned. Updates are made on an ad-hoc basis as needed to support Swiftfire development.
|Last commit: 48 weeks ago|
Swiftfire -and all its supporting packages- have been issued in their release 1.0.0
SwifterSockets has undergone some file-renaming and some reorganization. Otherwise the functionality itself is unchanged.