Instance Method

URLSession:streamTask:didBecomeInputStream:outputStream:

Tells the delegate that the stream task has been completed as a result of the stream task calling the captureStreams method.

Declaration

- (void)URLSession:(NSURLSession *)session streamTask:(NSURLSessionStreamTask *)streamTask didBecomeInputStream:(NSInputStream *)inputStream outputStream:(NSOutputStream *)outputStream;

Parameters

session

The session of the stream task that has been completed.

streamTask

The stream task that has been completed.

inputStream

The created input stream. This NSInputStream object is unopened.

outputStream

The created output stream. This NSOutputStream object is unopened

Discussion

This delegate method will only be called after all enqueued reads and writes for the stream task have been completed.