Contents

SCNetworkServiceAddProtocolType(_:_:)

Adds the network protocol of the specified type to the specified service.

Declaration

func SCNetworkServiceAddProtocolType(_ service: SCNetworkService, _ protocolType: CFString) -> Bool

Parameters

  • service:

    The network service.

  • protocolType:

    The type of network protocol to add to the service.

Return Value

TRUE if the protocol was added to the service; FALSE if the protocol was already present or an error occurred.

Discussion

The protocol configuration is set to default values that are appropriate for the interface associated with the service.

See Also

Configuring Network Services