SCNetworkInterfaceCreateWithInterface(_:_:)
Creates a new network interface layered on top of the specified interface.
Declaration
func SCNetworkInterfaceCreateWithInterface(_ interface: SCNetworkInterface, _ interfaceType: CFString) -> SCNetworkInterface?Parameters
- interface:
The network interface.
- interfaceType:
The type of interface to layer on top of the network interface specified in
interface.
Return Value
A reference to the new network interface. You must release the returned value.
Discussion
You can use this function to create a “PPP” interface on top of a “modem.”
See Also
Configuring Network Interfaces
SCNetworkInterfaceCopyAll()SCNetworkInterfaceCopyMTU(_:_:_:_:)SCNetworkInterfaceCopyMediaOptions(_:_:_:_:_:)SCNetworkInterfaceCopyMediaSubTypeOptions(_:_:)SCNetworkInterfaceCopyMediaSubTypes(_:)SCNetworkInterfaceForceConfigurationRefresh(_:)SCNetworkInterfaceGetBSDName(_:)SCNetworkInterfaceGetConfiguration(_:)SCNetworkInterfaceGetExtendedConfiguration(_:_:)SCNetworkInterfaceGetHardwareAddressString(_:)SCNetworkInterfaceGetInterface(_:)SCNetworkInterfaceGetInterfaceType(_:)SCNetworkInterfaceGetLocalizedDisplayName(_:)SCNetworkInterfaceGetSupportedInterfaceTypes(_:)SCNetworkInterfaceGetSupportedProtocolTypes(_:)