Gopher protocol support (initial release)

This commit is contained in:
Cameron Kaiser
2010-08-12 07:55:48 -07:00
committed by Daniel Stenberg
parent 6b6a3bcb61
commit 201637d468
9 changed files with 231 additions and 4 deletions

View File

@@ -46,6 +46,7 @@
#define PORT_RTMP 1935
#define PORT_RTMPT PORT_HTTP
#define PORT_RTMPS PORT_HTTPS
#define PORT_GOPHER 70
#define DICT_MATCH "/MATCH:"
#define DICT_MATCH2 "/M:"
@@ -712,11 +713,13 @@ struct connectdata {
#define PROT_RTMPTE CURLPROTO_RTMPTE
#define PROT_RTMPS CURLPROTO_RTMPS
#define PROT_RTMPTS CURLPROTO_RTMPTS
#define PROT_GOPHER CURLPROTO_GOPHER
/* (1<<24) is currently the highest used bit in the public bitmask. We make
sure we use "private bits" above the public ones to make things easier. */
/* (1<<25) is currently the highest used bit in the public bitmask. We make
sure we use "private bits" above the public ones to make things easier;
Gopher will not conflict with the current bit 25. */
#define PROT_EXTMASK 0xffffff
#define PROT_EXTMASK 0x03ffffff
#define PROT_SSL (1<<29) /* protocol requires SSL */