Contents

vmnet_network_copy_serialization(_:_:)

Serializes a vmnet network to an XPC object.

Declaration

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

Parameters

  • network:

    The network object to be copy serialized.

  • status:

    Optional output parameter, returns status.

Return Value

Serialized copy of network in xpc_object_t, NULL otherwise. Optionally, status will contain the error code.

Discussion

Use vmnet_network_create_with_serialization to create a new network object from such an XPC object.

See Also

Creating a network configuration