Function

CFHostCancelInfoResolution(_:_:)

Cancels the resolution of a host.

Declaration

func CFHostCancelInfoResolution(_ theHost: CFHost, _ info: CFHostInfoType)

Parameters

theHost

The host for which a resolution is to be cancelled. This value must not be NULL.

info

A value of type CFHostInfoType specifying the type of resolution that is to be cancelled. See CFHostInfoType for possible values.

Discussion

This function cancels the asynchronous or synchronous resolution specified by info for the host specified by theHost.

Special Considerations

This function is thread safe.

See Also

Hosts

class CFHost

An opaque reference representing an CFHost object.

enum CFHostInfoType

Values indicating the type of data that is to be resolved or the type of data that was resolved.

struct CFHostClientContext

A structure containing user-defined data and callbacks for CFHost objects.

func CFHostCreateWithAddress(CFAllocator?, CFData) -> Unmanaged<CFHost>

Uses an address to create an instance of a host object.

func CFHostCreateWithName(CFAllocator?, CFString) -> Unmanaged<CFHost>

Uses a name to create an instance of a host object.

func CFHostGetTypeID() -> CFTypeID

Gets the Core Foundation type identifier for the CFHost opaque type.

func CFHostSetClient(CFHost, CFHostClientCallBack?, UnsafeMutablePointer<CFHostClientContext>?) -> Bool

Associates a client context and a callback function with a CFHost object or disassociates a client context and callback function that were previously set.