CFSocketRegisterValue(_:_:_:_:)
Registers a property-list value with a CFSocket name server.
Declaration
func CFSocketRegisterValue(_ nameServerSignature: UnsafePointer<CFSocketSignature>!, _ timeout: CFTimeInterval, _ name: CFString!, _ value: CFPropertyList!) -> CFSocketErrorParameters
- 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(). IfnameServerSignatureis 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 with which to register
value. - value:
The property-list value to register.
Return Value
An error code indicating success or failure.
Discussion
To remove a registered value from the name server, use CFSocketUnregister(_:_:_:).