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/urldata.h | |
parent | e34131db783336aa17fa0aa664635867459b2a85 (diff) | |
download | curl-f0612f166a5fa51d09498baa19a327c5cf36941f.tar.gz |
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/urldata.h')
-rw-r--r-- | lib/urldata.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/urldata.h b/lib/urldata.h index 3f080520a..e78dbbf3c 100644 --- a/lib/urldata.h +++ b/lib/urldata.h @@ -684,6 +684,11 @@ struct Curl_handler { */ CURLcode (*disconnect)(struct connectdata *, bool dead_connection); + /* If used, this function gets called from transfer.c:readwrite_data() to + allow the protocol to do extra reads/writes */ + CURLcode (*readwrite)(struct SessionHandle *data, struct connectdata *conn, + ssize_t *nread, bool *readmore); + long defport; /* Default port. */ unsigned int protocol; /* See CURLPROTO_* */ unsigned int flags; /* Extra particular characteristics, see PROTOPT_* */ |