mirror of
https://github.com/curl/curl.git
synced 2026-08-25 01:03:31 +03:00
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.
This commit is contained in:
parent
e34131db78
commit
f0612f166a
18 changed files with 67 additions and 35 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue