PureSwift / Socket

Swift async/await based socket
MIT License
116 stars 7 forks source link

Any plan for a server version? #1

Closed malcommac closed 2 years ago

malcommac commented 2 years ago

Hi, thanks for the project. Is there any plan to also add socket server?

colemancda commented 2 years ago

This is a generic POSIX socket wrapper, you can use it for client, server, etc. It can be bound to IPv4, IPv6, Netlink, Bluetooth HCI, Bluetooth L2CAP, or any other socket address family your OS supports. The System package has a list of supported Address families for macOS and Linux: https://github.com/PureSwift/swift-system/blob/master/Sources/System/Socket/SocketAddressFamily.swift Also check out these uses: https://github.com/PureSwift/Netlink/blob/master/Sources/Netlink/Socket.swift https://github.com/PureSwift/BluetoothLinux/blob/master/Sources/BluetoothLinux/L2CAP/L2CAPSocket.swift https://github.com/PureSwift/BluetoothLinux/blob/master/Sources/BluetoothLinux/HCI/HostController.swift