diff options
author | Max Dymond <max.dymond@metaswitch.com> | 2017-05-31 12:09:56 +0100 |
---|---|---|
committer | ng0 <ng0@infotropique.org> | 2017-08-22 15:29:36 +0000 |
commit | 7456fc0f2695c69c32d22f44ed29afd103282e46 (patch) | |
tree | 276b1cb2c0008b8033a05f79ef3855bd01f26dd4 /lib/imap.c | |
parent | a8526897874613e5712f2310f4c7572f933c33e6 (diff) | |
download | gnurl-7456fc0f2695c69c32d22f44ed29afd103282e46.tar.gz gnurl-7456fc0f2695c69c32d22f44ed29afd103282e46.tar.bz2 gnurl-7456fc0f2695c69c32d22f44ed29afd103282e46.zip |
handler: refactor connection checking
Add a new type of callback to Curl_handler which performs checks on
the connection. Alter RTSP so that it uses this callback to do its
own check on connection health.
Diffstat (limited to 'lib/imap.c')
-rw-r--r-- | lib/imap.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/imap.c b/lib/imap.c index 18b1760fc..48af2902a 100644 --- a/lib/imap.c +++ b/lib/imap.c @@ -128,6 +128,7 @@ const struct Curl_handler Curl_handler_imap = { ZERO_NULL, /* perform_getsock */ imap_disconnect, /* disconnect */ ZERO_NULL, /* readwrite */ + ZERO_NULL, /* connection_check */ PORT_IMAP, /* defport */ CURLPROTO_IMAP, /* protocol */ PROTOPT_CLOSEACTION| /* flags */ @@ -154,6 +155,7 @@ const struct Curl_handler Curl_handler_imaps = { ZERO_NULL, /* perform_getsock */ imap_disconnect, /* disconnect */ ZERO_NULL, /* readwrite */ + ZERO_NULL, /* connection_check */ PORT_IMAPS, /* defport */ CURLPROTO_IMAPS, /* protocol */ PROTOPT_CLOSEACTION | PROTOPT_SSL /* flags */ |