Online Documentation - Statistics - FAQ - Plugin Parts (All, Dependencies) - Class hierarchy
New in Version 22.2 22.3 22.4 22.5 23.0 23.1 23.2 23.3 23.4 23.5 24.0 24.1
The list of the topics, classes, interfaces, controls, modules, global methods by category, global methods by name, screenshots, licenses and examples.
Platforms to show: All Mac Windows Linux Cross-Platform
Super class: NSURLSessionTaskMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | Cocoa Networking | MBS MacFrameworks Plugin | 20.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
NSURLSessionStreamTaskMBS is a concrete subclass of NSURLSessionTaskMBS. Many of the methods in the NSURLSessionStreamTaskMBS class are documented in NSURLSessionTaskMBS.
The NSURLSessionStreamTaskMBS class provides an interface a TCP/IP connection created via NSURLSession. Tasks may be created from an NSURLSession using the streamTaskWithHostName and streamTaskWithNetService methods. They may also created as a result of an NSURLSessionDataTaskMBS being upgraded via the HTTP Upgrade: response header and appropriate use of the HTTPShouldUsePipelining option of NSURLSessionConfigurationMBS.
See RFC 2817 and RFC 6455 for information about the Upgrade: header.
An NSURLSessionStreamTask object perform sasynchronous reads and writes, which are enqueued and executed serially, calling a handler upon completion being on the session delegate queue. If the task is canceled, all enqueued reads and writes will call their completion handlers with an appropriate error.
When working with APIs that accept NSStreamMBS objects, you can create NSInputStreamMBS and NSOutputStreamMBS objects from an NSURLSessionStreamTaskMBS object by calling the captureStreams method.
Subclass of the NSURLSessionTaskMBS class.
This is an abstract class. You can't create an instance, but you can get one from various plugin functions.
Constant | Value | Description |
---|---|---|
StateCanceling | 2 |
The task has received a cancel message. The delegate may or may not have received a taskDidCompleteWithError message yet. A task in this state is not subject to timeouts. |
StateCompleted | 3 | The task has completed (without being canceled), and the task's delegate receives no further callbacks. more |
StateRunning | 0 |
The task is currently being serviced by the session. A task in this state is subject to the request and resource timeouts specified in the session configuration object. |
StateSuspended | 1 |
The task was suspended by the app. No further processing takes place until the task is resumed. A task in this state is not subject to timeouts. |
This class has no sub classes.
The items on this page are in the following plugins: MBS MacFrameworks Plugin.
NSURLSessionMBS - NSURLSessionTaskMBS