Socket framework for Swift using the Swift Package Manager. Works on iOS, macOS, and Linux.
This release no longer supports Swift 4.x. The minimum supported Swift version is 5.0, while the minimum recommended version is 5.2.
Socket framework for Swift using the Swift Package Manager. Works on iOS, macOS, and Linux.
swift-4.0.0-RELEASE
toolchain (Minimum REQUIRED for latest release)swift-5.0-RELEASE
toolchain (Recommended)Socket framework for Swift using the Swift Package Manager. Works on iOS, macOS, and Linux.
swift-4.0.0-RELEASE
toolchain (Minimum REQUIRED for latest release)swift-4.2-RELEASE
toolchain (Recommended)This release minimally requires use of the swift-3.1.1-RELEASE toolchain or the swift-4.0.0-RELEASE toolchain which is recommended.
read(into data: inout Data)
- This function reads all the data available on a socket and returns it in the Data
object that was passed. This function has been added to the SocketReader protocol.write(from data: Data)
- This function writes the data contained within the Data
object to the socket. This method has been added to the SocketWriter protocol.remoteConnectionClosed
, to enable differentiation between a socket that is no longer connected to its' remote partner and one that would block. If this property returns true, the remote connection has been closed and the socket should be closed.README.md
.endianness check
for host before byte swapping (PR#20).Signature
. Hence, the caller would not know what port was assigned and is being listened to. Added two additional unit tests to test this condition. Also, related to this, passing of a zero (0) for port when attempting to connect
is invalid and will now be cause for an exception being thrown.README.md
for more information.isSecure
, at the Socket
level to resolve the optional signature
property and returns true if the socket is secure and false otherwise.README.md
for more information.README.md
for more information.truncate
parameter. See issue #66.This release requires use of the swift-DEVELOPMENT-SNAPSHOT-2016-08-15-a toolchain.
README.md
for more information.read(into data: inout Data)
- This function reads all the data available on a socket and returns it in the Data
object that was passed. This function has been added to the SocketReader protocol.write(from data: Data)
- This function writes the data contained within the Data
object to the socket. This method has been added to the SocketWriter protocol.This release requires use of the swift-DEVELOPMENT-SNAPSHOT-2016-08-04-a toolchain or the new swift-DEVELOPMENT-SNAPSHOT-2016-08-07-a toolchain. The use of the 8/7 toolchain is recommended.
README.md
for more information.read(into data: inout Data)
- This function reads all the data available on a socket and returns it in the Data
object that was passed. This function has been added to the SocketReader protocol.write(from data: Data)
- This function writes the data contained within the Data
object to the socket. This method has been added to the SocketWriter protocol.This release requires use of the new swift-DEVELOPMENT-SNAPSHOT-2016-07-25-a toolchain.
read(into data: inout Data)
- This function reads all the data available on a socket and returns it in the Data
object that was passed.write(from data: Data)
- This function writes the data contained within the Data
object to the socket.This release requires use of the new swift-DEVELOPMENT-SNAPSHOT-2016-06-20-a toolchain.