Hi, Quinn
From figure 1-1 and 1-2 of the below link:
Does it mean that the implementation of NSURLSession/NSURLConnection is based on the APIs from CFNetwork and CFNetwork APIs is based on those of CFStream/CFSocket? For example, for code below,
CFSocketConnectToAddress or CFSocketCreateConnectedToSocketSignature or some similar function will eventually be called underneath??
NSURLSessionDataTask *imageTask = [session dataTaskWithRequest:request completionHandler:
^(NSData *data, NSURLResponse *response, NSError *error) {
..
}];
[imageTask resume];
Or is it using raw socket and bypassing CFStream/CFSocket?
Just want to find out the concrete/exact relations between APIs from differenct network layers but could not google it out..
Thanks,
Rao