vmnet_network_create(_:_:)
Creates a vmnet network based on the provided configuration.
Declaration
func vmnet_network_create(_ configuration: vmnet_network_configuration_ref, _ status: UnsafeMutablePointer<vmnet_return_t>?) -> vmnet_network_ref?Parameters
- configuration:
The vmnet network configuration.
Return Value
Vmnet network handle on success, otherwise NULL.
Discussion
This API attempts to reserve the configuration such that subsequent interface start calls is guaranteed to not fail due to resource contention. The lifetime of such reservation is the same as that of vmnet_network_ref. Use CFRelease to release the network object.