axiom-networking

Implement iOS network connections using Apple's Network.framework for TCP, UDP, and TLS.

Updated Dec 3, 2025
One-click install
npx skills add https://github.com/tuliopc23/flying-dutchman-app --skill axiom-networking-tuliopc23
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: axiom-networking
Source: https://github.com/tuliopc23/flying-dutchman-app/tree/main/.claude/skills/axiom-networking
Command: npx skills add https://github.com/tuliopc23/flying-dutchman-app --skill axiom-networking-tuliopc23

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps developers implement and debug network connections on iOS using Apple's modern Network.framework, preventing common pitfalls like deprecated API usage, reachability anti-patterns, and thread-safety violations.

Core Features & Use Cases

  • Connection Implementation: Guides on using NWConnection and NetworkConnection for TCP and UDP.
  • Migration Assistance: Helps migrate from older networking APIs like SCNetworkReachability and CFSocket.
  • Debugging: Provides insights into connection failures, timeouts, and network transitions.
  • Modern Patterns: Demonstrates structured concurrency with NetworkConnection for iOS 26+.
  • Use Case: A developer needs to implement a real-time chat feature using Network.framework. This Skill provides patterns for establishing TLS connections, handling message framing, and managing connection states gracefully.

Quick Start

Use the axiom-networking skill to implement a basic TCP connection with TLS for iOS 26+.

Frequently Asked Questions about axiom-networking

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I implement a TCP connection with TLS using Network.framework on iOS?

To implement a TCP connection with TLS using Network.framework, configure an NWConnection or NetworkConnection with TLS parameters, handle connection state updates, and manage data send/receive flows asynchronously to establish robust secure connections.

What is the best way to migrate from SCNetworkReachability to Network.framework?

Migrating from SCNetworkReachability to Network.framework involves replacing deprecated polling APIs with NWPathMonitor or connection state handlers, eliminating reachability anti-patterns by leveraging built-in state updates to monitor network availability accurately.

How does structured concurrency work with NetworkConnection for iOS 26+?

Structured concurrency with NetworkConnection on iOS 26+ allows developers to manage network flows using async/await patterns, enabling safer asynchronous code execution for TCP, UDP, and TLS tasks while preventing thread-safety violations.

Why does my NWConnection fail or timeout during network transitions?

NWConnection failures and timeouts during network transitions often occur due to improper handling of connection state changes or missing error recovery logic, requiring developers to implement graceful state management and robust retry patterns.

Can I use Network.framework for UDP and TLV message framing?

Yes, Network.framework supports UDP connections and TLV message framing by configuring NWConnection or NetworkConnection for datagram transport, allowing developers to structure packet payloads with type-length-value headers for real-time communication features.

What are common thread-safety violations when debugging iOS network connections?

Common thread-safety violations when debugging iOS network connections include updating UI states directly from background network callbacks and improperly sharing connection resources across concurrent threads, which structured concurrency patterns in NetworkConnection help prevent.