Re: Still interested in (NS)URLSessionStreamTask
Re: Still interested in (NS)URLSessionStreamTask
- Subject: Re: Still interested in (NS)URLSessionStreamTask
- From: Daryle Walker <email@hidden>
- Date: Fri, 10 Feb 2017 19:31:07 -0500
> On Feb 7, 2017, at 6:09 PM, Quinn The Eskimo! <email@hidden> wrote:
>
>
> On 7 Feb 2017, at 20:40, Daryle Walker <email@hidden> wrote:
>
>> Do session tasks still use resume …?
>
> Yes.
>
>> If resume is used, how would you open a connection in implicit-SSL mode?
>
> I’m not sure what you mean by “implicit-SSL mode” but:
>
> * If you’re working with a protocol that assumes TLS (like HTTPS), call `startSecureConnection()` before doing any I/O on the stream
This is an implicit TLS connection. I don’t think anyone uses the term since the 1990s (when it was still SSL). From the user’s perspective, they didn’t have to send a TLS connection command, since it was already done when the connection first started. The other way, a.k.a. Start-TLS, is an explicit command. (Oddly, by reversing the perspective, implicit-TLS is externally imposed on the protocol while Start-TLS is internally generated by the protocol.)
It seems that both my possibilities were right. You still need to call “resume”, but the connection waits until the first read/write/secure-connection to start work. (Which one of the three starting points is used depends on what protocol you're implementing.)
—
Daryle Walker
Mac, Internet, and Video Game Junkie
darylew AT mac DOT com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden