Streams, Sockets, and Ports

Use low-level Unix features to manage input and output among files, processes, and the network.

Topics

Streams

NSStream

An abstract class representing a stream.

NSInputStream

A stream that provides read-only stream functionality.

NSOutputStream

A stream that provides write-only stream functionality.

NSStreamDelegate

An interface that delegates of a stream instance use to handle events on the stream.

Tasks and Pipes

NSTask

An object representing a subprocess of the current process.

NSPipe

A one-way communications channel between related processes.

Sockets

NSHost

A representation of an individual host on the network.

NSPort

An abstract class that represents a communication channel.

NSSocketPort

A port that represents a BSD socket.

Byte Ordering

Byte Order Utilities

Examine and manage the byte order of numbers communicated through network channels.

See Also

Low-Level Utilities

XPC

Manage secure interprocess communication.

Object Runtime

Get low-level support for basic Objective-C features, Cocoa design patterns, and Swift integration.

Processes and Threads

Manage your app's interaction with the host operating system and other processes, and implement low-level concurrency features.