One Logo Pool Ball
Network · IOS API REFERENCE

NWProtocolFramer

class · iOS 13.0+ · SDK 27.1

class NWProtocolFramer

An NWProtocolFramer defines a protocol in a connection's protocol stack that parses and writes messages on top of a transport protocol, such as a TCP stream. A framer can add and parse headers or delimiters around application data to provide a message-oriented abstraction. In order to implement a framer protocol, first define a class that conforms to NWProtocolFramerImplementation. Pass this type to NWProtocolFramer.Definition to create a protocol definition. This can be used to create options with NWProtocolFramer.Options, which can be added to an NWParameters.ProtocolStack. The callbacks and actions for the framer's protocol instance can be set once the NWProtocolFramerImplementation object is intantiated. In order to send and receive framer messages with custom values on an NWConnection, use NWProtocolFramer.Message as part of a NWConnection.ContentContext.

Members (0)

This type has no directly callable members in this snapshot. See the framework’s skipped declarations for unsupported APIs.

Skipped declarations

No declarations were skipped in this snapshot.

All Network types →