Contents

SCNetworkServiceCopyProtocol(_:_:)

Returns the network protocol of the specified type for the specified service.

Declaration

func SCNetworkServiceCopyProtocol(_ service: SCNetworkService, _ protocolType: CFString) -> SCNetworkProtocol?

Parameters

  • service:

    The network service.

  • protocolType:

    The type of network protocol.

Return Value

The network protocol associated with the service, or NULL if this protocol has not been added or if an error occurred. You must release the returned value.

See Also

Configuring Network Services