# robbiehanson/CocoaAsyncSocket

Asynchronous socket networking library for Mac and iOS

Repository: https://github.com/robbiehanson/CocoaAsyncSocket
Canonical: https://ross.abutalabs.com/products/cocoaasyncsocket
Language: Objective-C
License: NOASSERTION
License Family: other
Last push: 2026-06-23T18:02:32+00:00

## Health v2 (maintenance only)
Score: 63/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 89, release rhythm 8, longevity 100
- inputs: {"age_days": 5398, "days_push": 71, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 12450, forks 2990 (observed 2026-08-28T04:10:58.939885+00:00)

## What it is
CocoaAsyncSocket is an asynchronous TCP and UDP socket networking library for macOS, iOS, and tvOS, built on Grand Central Dispatch. It provides Objective-C classes (GCDAsyncSocket and GCDAsyncUdpSocket) with delegate-based, non-blocking read/write operations.

## Use cases
- add TCP client/server networking to an iOS app
- implement async UDP communication on macOS
- build a socket-based protocol in Objective-C or Swift
- handle non-blocking socket reads and writes with timeouts
- stream data over TCP without blocking the main thread

## When to choose
- you need battle-tested async TCP/UDP sockets on Apple platforms
- you want a self-contained Objective-C library with delegate callbacks
- you need CocoaPods, Carthage, or SPM integration

## When to avoid
- you are targeting non-Apple platforms
- you prefer Swift-native networking like Network.framework
- you need higher-level HTTP or WebSocket abstractions

## Facets
- artifact type: library
- maturity: stable
- function: networking, concurrency
- domain: networking, developer-tools, cross-platform
- platform: cpp
- tags: tcp, udp, objective-c, sockets, gcd, apple-platforms, cocoapods, macos, ios, swift

## Member repositories
- robbiehanson/CocoaAsyncSocket (main) score 63

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:10:58.939885+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:14:03.572135+00:00, confidence not recorded.
  - readme: https://github.com/robbiehanson/CocoaAsyncSocket (fetched 2026-08-28T04:10:58.939885+00:00, sha 8d9ad6c72ebe)
- Data as of 2026-08-30T08:39:29.467469+00:00.
