Instance Method

closeRead

Completes any enqueued reads and writes, and then closes the read side of the underlying socket.

Declaration

- (void)closeRead;

Discussion

You may continue to write data using the writeData:timeout:completionHandler: method after calling this method. Any calls to readDataOfMinLength:maxLength:timeout:completionHandler: after calling this method will result in an error.

See Also

Closing Read and Write Sockets

- closeWrite

Completes any enqueued reads and writes, and then closes the write side of the underlying socket.

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