{"id":3099,"url":"https://github.com/Balancingrock/SwifterSockets","last_synced_at":"2025-08-03T13:31:55.578Z","repository":{"id":63905203,"uuid":"52957794","full_name":"Balancingrock/SwifterSockets","owner":"Balancingrock","description":"A collection of socket utilities in Swift.","archived":false,"fork":false,"pushed_at":"2020-07-10T08:34:01.000Z","size":1728,"stargazers_count":58,"open_issues_count":0,"forks_count":5,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-05-22T06:44:40.984Z","etag":null,"topics":["socket-utilities","swiftfire"],"latest_commit_sha":null,"homepage":"http://swiftfire.nl/","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Balancingrock.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-03-02T11:28:58.000Z","updated_at":"2022-09-09T11:58:57.000Z","dependencies_parsed_at":"2022-11-28T19:23:24.649Z","dependency_job_id":null,"html_url":"https://github.com/Balancingrock/SwifterSockets","commit_stats":null,"previous_names":[],"tags_count":32,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Balancingrock%2FSwifterSockets","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Balancingrock%2FSwifterSockets/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Balancingrock%2FSwifterSockets/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Balancingrock%2FSwifterSockets/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Balancingrock","download_url":"https://codeload.github.com/Balancingrock/SwifterSockets/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228548567,"owners_count":17935221,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["socket-utilities","swiftfire"],"created_at":"2024-01-05T20:16:31.358Z","updated_at":"2024-12-07T01:30:36.198Z","avatar_url":"https://github.com/Balancingrock.png","language":"Swift","readme":"# SwifterSockets\n\nA collection of socket utilities in pure Swift\n\nSwifterSockets is part of the Swiftfire webserver project.\n\nThe [Swiftfire website](http://swiftfire.nl)\n\nThe [reference manual](http://swiftfire.nl/projects/swiftersockets/reference/index.html)\n\nSwifterSockets is also used in our PortSpy application in the [App Store](https://itunes.apple.com/us/app/port-spy/id1163684496). Buyers of PortSpy get the complete sources of the project (Xcode project) used to build the App.\n\nIf you need secure connections, check out [SecureSockets](https://github.com/Balancingrock/SecureSockets) which is build on top of SwifterSockets (and OpenSSL).\n\nIf you are new to socket programming, check out our blog series which starts [here](https://swiftrien.blogspot.com/2015/10/socket-programming-in-swift-part-1.html)\n\n# Features\n\n- Shields the Swift application from the complexity of the Unix socket calls.\n- Directly interfaces with the POSIX calls using:\n\t- connectToTipServer\n\t- tipTransfer\n\t- tipReceiverLoop\n\t- tipAccept\n\t- setupTipServer\n- Implements a framework on top of the POSIX calls with:\n\t- Connection (class)\n\t- connectToTipServer (returns a connection)\n\t- TipServer (class, produces connections)\n- Includes replacements for the FD_SET, FD_CLR, FD_ZERO and FD_ISSET macro's.\n- Builds as a library using the Swift Package Manager (SPM)\n\n# Installation\n\nSwifterSockets can be used by the Swift Package Manager. Just add it to your package manifest as a dependency.\n\nAlternatively you can clone the project and generate a Xcode framework in the following way:\n\n1. First clone the repository and create a Xcode project:\n\n        $ git clone https://github.com/Balancingrock/SwifterSockets\n        $ cd SwifterSockets\n        $ swift package generate-xcodeproj\n\n1. 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)\n\n1. 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 `Embedded Binaries`.\n\n1. In the Swift source code where you want to use it, import SwifterSockets at the top of the file.\n\n# Version history\n\nNo new features planned. Updates are made on an ad-hoc basis as needed to support Swiftfire development.\n\n#### 1.1.3\n\n- Reduced suported macOS platform to v10_10.\n\n#### 1.1.2\n\n- Added platforms, swift version and LICENSE file.\n\n#### 1.1.1\n\n- Added linux compatibility\n\n#### 1.1.0\n\n- Removed SocketAddress.swift (due to warnings in Swift 5.2)\n- Switched to Swift.Result instead of BRUtils.Result\n- Introduced SwifterSocketsResult\n- Removed now superfluous BRUtils dependency\n\n#### 1.0.2\n\n- Documenation updates\n\n#### 1.0.1\n\n- Fixed website link in header\n\n#### 1.0.0\n\n- Restructured for Swiftfire 1.0.0\n","funding_links":[],"categories":["WebSocket"],"sub_categories":["Web View","Other free courses"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FBalancingrock%2FSwifterSockets","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FBalancingrock%2FSwifterSockets","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FBalancingrock%2FSwifterSockets/lists"}