CocoaAsyncSocket provides easy-to-use and powerful asynchronous socket libraries for macOS, iOS, and tvOS. The classes are described below. The project is currently configured to build for iOS, tvOS and Mac. Simply add the package dependency to your Package.swift and depend on "CocoaAsyncSocket" in the necessary targets. You can also include it into your project by adding the source files directly, but you should probably be using a dependency manager to keep up to date. GCDAsyncSocket is a TCP/IP socket networking library built atop Grand Central Dispatch. Automatically accept incoming connections over both IPv4 and IPv6 with a single instance of this class. No more worrying about multiple sockets. Secure your socket with ease using just a single method call. Available for both client and server sockets. It runs entirely within its own GCD dispatch_queue, and is completely thread-safe. Further, the delegate methods are all invoked asynchronously onto a dispatch_queue of your choosing.