Examples of pre-HTTP (i.e. session-based) protocol
Examples of pre-HTTP (i.e. session-based) protocol
- Subject: Examples of pre-HTTP (i.e. session-based) protocol
- From: Daryle Walker <email@hidden>
- Date: Mon, 30 Jun 2014 04:45:57 -0400
AIUI, the URLConnection family of classes support the following schemes:
* file * data * http(s) * ftp
The first one deals with locally-available data. The second is synthesized local data. The third the the most common download protocol today. The fourth is a classic protocol.
HTTP classically has been a one-and-done protocol; each resource requires a separate contact-and-response loop. I think that the 1.1 version supports persistent connections, to download a bunch of resources from a single server in a bunch. As I said, HTTP is one of the most common protocols, and the example code I’ve seen of extending URLConnection has featured custom HTTP variants.
I want to know how to make a subclass that isn’t based on HTTP. The protocol is session-based. So part of what I want to know if Apple’s FTP implementation does brand new connections for every resource, or does it retain connections (for a while) in case a new resource request needs to go to an already-contacted server? Although HTTP is a very common protocol, it’s in a minority (AFAIK) in that it’s one-and-done; most protocols that I know of are session-based. (The only one-and-done ones I know of are HTTP, Finger, and Gopher.)
— 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