Contents

CFSocketUnregister(_:_:_:)

Unregisters a value or socket signature with a CFSocket name server.

Declaration

func CFSocketUnregister(_ nameServerSignature: UnsafePointer<CFSocketSignature>!, _ timeout: CFTimeInterval, _ name: CFString!) -> CFSocketError

Parameters

  • nameServerSignature:

    The socket signature for the name server. If NULL, this function contacts the default server, which is assumed to be a local process using TCP/IP to listen on the port number returned from Cfsocketgetdefaultnameregistryportnumber(). If nameServerSignature is incomplete, the missing values are replaced with the default server’s values, if appropriate.

  • timeout:

    The time to wait for the server to accept a connection and to reply to the registration request.

  • name:

    The name of the property-list value or socket signature to unregister.

Return Value

An error code indicating success or failure.

Discussion

The value being unregistered was previously registered with CFSocketRegisterValue(_:_:_:_:) or CFSocketRegisterSocketSignature(_:_:_:_:).

See Also

Core Foundation Socket Name Server Utilities Miscellaneous Functions