Instance Method

getInputStream:outputStream:

Creates a pair of input and output streams for the receiver and returns a Boolean value that indicates whether they were retrieved successfully.

Declaration

- (BOOL)getInputStream:(out NSInputStream * _Nullable *)inputStream outputStream:(out NSOutputStream * _Nullable *)outputStream;

Parameters

inputStream

Upon return, the input stream for the receiver. Pass NULL if you do not need this stream.

outputStream

Upon return, the output stream for the receiver. Pass NULL if you do not need this stream.

Return Value

YES if the streams are created successfully, otherwise NO.

Discussion

After this method is called, no delegate callbacks are called by the receiver.

See Also

Configuring Network Services

+ dataFromTXTRecordDictionary:

Returns an NSData object representing a TXT record formed from a given dictionary.

+ dictionaryFromTXTRecordData:

Returns a dictionary representing a TXT record given as an NSData object.

addresses

A read-only array containing NSData objects, each of which contains a socket address for the service.

domain

A string containing the domain for this service.

includesPeerToPeer

Specifies whether to also publish, resolve, or monitor this service over peer-to-peer Bluetooth and Wi-Fi, if available. NO by default.

name

A string containing the name of this service.

type

The type of the published service.

- TXTRecordData

Returns the TXT record for the receiver.

- setTXTRecordData:

Sets the TXT record for the receiver, and returns a Boolean value that indicates whether the operation was successful.

- protocolSpecificInformation

Returns protocol specific information for legacy ZeroConf-style clients.

- setProtocolSpecificInformation:

Sets protocol specific information for legacy ZeroConf-style clients.

delegate

The delegate for the receiver.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software