Contents

SCNetworkInterfaceSetMediaOptions(_:_:_:)

Sets the requested media subtype and options for the specified network interface.

Declaration

func SCNetworkInterfaceSetMediaOptions(_ interface: SCNetworkInterface, _ subtype: CFString?, _ options: CFArray?) -> Bool

Parameters

  • interface:

    The network interface.

  • subtype:

    The media subtype to set (for example, “autoselect” or “100baseTX”).

  • options:

    The media options to set (for example, “half-duplex” or “full-duplex”). If NULL, the active options are not returned.

Return Value

TRUE if the configuration was updated; FALSE if an error occurred.

See Also

Configuring Network Interfaces