Function

vmnet_stop_interface(_:_:_:)

Stops the interface.

Declaration

func vmnet_stop_interface(_ interface: interface_ref, _ queue: DispatchQueue, _ handler: @escaping vmnet_interface_completion_handler_t) -> vmnet_return_t

Parameters

interface

The interface reference.

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.

Return Value

Returns vmnet on success, or an error code on failure. See vmnet for possible values.

Discussion

After this function is called, any further calls to read/write packets on interface will fail.

See Also

Starting and Stopping Interfaces