Contents

startIBSSMode(withSSID:security:channel:password:)

Creates a computer-to-computer (ad-hoc) network with the given network name, security type, and password on the specified channel.

Declaration

func startIBSSMode(withSSID ssidData: Data, security: CWIBSSModeSecurity, channel: Int, password: String?) throws

Parameters

  • security:

    The security type to be used.

  • channel:

    The channel on which the network will be created.

  • password:

    The password to be used. This paramter is not applicable to open system authentication.

Discussion

If name is nil, the machine name will be used as the network name. This operation may require an administrator password.