What is GCDAsyncSocket (TCP)?
masterGCDAsyncSocket is a TCP/IP socket networking library built on top of Grand Central Dispatch (GCD). It is designed to be fully self-contained and thread-safe, running entirely within its own GCD dispatch queue.
Key capabilities include:
- Full Delegate Support: Receives callbacks for errors, connections, read/write completions, progress, and disconnections.
- Non-blocking I/O: Supports queued non-blocking reads and writes with optional timeouts, including automatic buffering and termination sequence searching.
- Automatic Server Management: Automatically accepts incoming connections and provides new instances of the socket for each connection.
- IPv4/IPv6 Support: Automatically handles both protocols.
- Security: Supports TLS/SSL for both client and server sockets via a single method call.