diff options
author | Daniel Stenberg <daniel@haxx.se> | 2011-05-05 16:27:03 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2011-05-05 16:27:03 +0200 |
commit | f0612f166a5fa51d09498baa19a327c5cf36941f (patch) | |
tree | 29c442a7c9de7d9b7075ea73456daef845bfbf91 /lib/http.c | |
parent | e34131db783336aa17fa0aa664635867459b2a85 (diff) |
RTSP: convert protocol-specific checks to generic
Add a 'readwrite' function to the protocol handler struct and use that
for the extra readwrite functionality RTSP needs.
Diffstat (limited to 'lib/http.c')
-rw-r--r-- | lib/http.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/http.c b/lib/http.c index 5759a7ff2..cc8dcffa5 100644 --- a/lib/http.c +++ b/lib/http.c @@ -139,6 +139,7 @@ const struct Curl_handler Curl_handler_http = { http_getsock_do, /* doing_getsock */ ZERO_NULL, /* perform_getsock */ ZERO_NULL, /* disconnect */ + ZERO_NULL, /* readwrite */ PORT_HTTP, /* defport */ CURLPROTO_HTTP, /* protocol */ PROTOPT_NONE /* flags */ @@ -161,6 +162,7 @@ const struct Curl_handler Curl_handler_https = { http_getsock_do, /* doing_getsock */ ZERO_NULL, /* perform_getsock */ ZERO_NULL, /* disconnect */ + ZERO_NULL, /* readwrite */ PORT_HTTPS, /* defport */ CURLPROTO_HTTP | CURLPROTO_HTTPS, /* protocol */ PROTOPT_SSL /* flags */ |