aboutsummaryrefslogtreecommitdiff
path: root/lib/urldata.h
diff options
context:
space:
mode:
authorHoward Chu <hyc@highlandsun.com>2010-05-12 23:07:20 +0200
committerDaniel Stenberg <daniel@haxx.se>2010-05-12 23:07:20 +0200
commit04cb15ae9dc0e863487ee55de2226cf5033311c0 (patch)
treebce4eb1a51164342cf35ba456a225fc1fefa9766 /lib/urldata.h
parentbc8fc9803fbd0fa9daf0dba796d42d03faf49120 (diff)
RTMP: initial support added, powered by librtmp
librtmp is found at http://rtmpdump.mplayerhq.hu/
Diffstat (limited to 'lib/urldata.h')
-rw-r--r--lib/urldata.h18
1 files changed, 14 insertions, 4 deletions
diff --git a/lib/urldata.h b/lib/urldata.h
index 30782c2a2..94e904fe5 100644
--- a/lib/urldata.h
+++ b/lib/urldata.h
@@ -43,6 +43,9 @@
#define PORT_SMTP 25
#define PORT_SMTPS 465 /* sometimes called SSMTP */
#define PORT_RTSP 554
+#define PORT_RTMP 1935
+#define PORT_RTMPT PORT_HTTP
+#define PORT_RTMPS PORT_HTTPS
#define DICT_MATCH "/MATCH:"
#define DICT_MATCH2 "/M:"
@@ -706,13 +709,19 @@ struct connectdata {
#define PROT_SMTP CURLPROTO_SMTP
#define PROT_SMTPS CURLPROTO_SMTPS
#define PROT_RTSP CURLPROTO_RTSP
-
-/* (1<<18) is currently the highest used bit in the public bitmask. We make
+#define PROT_RTMP CURLPROTO_RTMP
+#define PROT_RTMPT CURLPROTO_RTMPT
+#define PROT_RTMPE CURLPROTO_RTMPE
+#define PROT_RTMPTE CURLPROTO_RTMPTE
+#define PROT_RTMPS CURLPROTO_RTMPS
+#define PROT_RTMPTS CURLPROTO_RTMPTS
+
+/* (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. */
-#define PROT_EXTMASK 0xfffff
+#define PROT_EXTMASK 0xffffff
-#define PROT_SSL (1<<25) /* protocol requires SSL */
+#define PROT_SSL (1<<29) /* protocol requires SSL */
/* these ones need action before socket close */
#define PROT_CLOSEACTION (PROT_FTP | PROT_IMAP | PROT_POP3)
@@ -864,6 +873,7 @@ struct connectdata {
struct pop3_conn pop3c;
struct smtp_conn smtpc;
struct rtsp_conn rtspc;
+ void *generic;
} proto;
int cselect_bits; /* bitmask of socket events */