Instance Property

socketType

The type of the socket. For example, SOCK_STREAM.

Declaration

@property(readonly) int socketType;

See Also

Getting Socket Flow Properties

remoteEndpoint

An NWEndpoint object containing details about the socket’s remote endpoint. This endpoint object may be nil when [NEFilterDataProvider handleNewFlow:] is invoked; if so, it will be populated upon receiving network data. In such a case, flow filtering may still be performed based on its socket type, socket family, or socket protocol.

localEndpoint

An NWEndpoint object containing details about the socket’s local endpoint. This endpoint object may be nil when [NEFilterDataProvider handleNewFlow:] is invoked; if so, it will be populated upon receiving network data. In such a case, flow filtering may still be performed based on its socket type, socket family, or socket protocol.

socketFamily

The protocol family of the socket. For example, PF_INET.

socketProtocol

The protocol of the socket. For example, IPPROTO_TCP.