Function

vmnet_start_interface

Starts host or shared mode on an interface with a specified configuration.

Declaration

interface_ref vmnet_start_interface(xpc_object_t interface_desc, dispatch_queue_t queue, vmnet_start_interface_completion_handler_t handler);

Parameters

interface_desc

An XPC dictionary describing parameters of the interface.

Supported keys are described in interface_desc XPC Dictionary Keys.

queue

The queue on which the handler is scheduled.

handler

A block to be executed after interface is started.

status

vmnet on success, or vmnet on failure.

interface_param

On success, this argument contains an XPC dictionary containing information about the interface.

Possible keys are described in interface_param XPC Dictionary Keys.

Return Value

Returns an interface reference, or NULL if an error occurred.

See Also

Starting and Stopping Interfaces

vmnet_interface_set_event_callback

Schedules a callback to be executed when events for the specified interface are received.

vmnet_stop_interface

Stops the interface.