Contents

vmnet_network_create_with_serialization(_:_:)

Creates a vmnet network from an XPC object you obtained from calling the vmnet networkcopy serialization API.

Declaration

func vmnet_network_create_with_serialization(_ network: xpc_object_t, _ status: UnsafeMutablePointer<vmnet_return_t>?) -> vmnet_network_ref?

Parameters

  • network:

    The xpc object from which to create the network

  • status:

    Optional output parameter, returns status.

Return Value

Network object in vmnet_network_ref, NULL otherwise. The status contains the error code.

See Also

Creating a network configuration