diff options
| author | 2019-06-13 02:01:04 +0300 | |
|---|---|---|
| committer | 2019-06-13 01:41:20 +0200 | |
| commit | 4d8b89223cbc9f530cc650ab5131c09eab1af258 (patch) | |
| tree | e63216393208c07ae83c7b8eba5e0a9546de4fef /include/libimobiledevice/heartbeat.h | |
| parent | 6edc36fccb52a963c9ebfbb44ba7b91570e0fd06 (diff) | |
| download | libimobiledevice-4d8b89223cbc9f530cc650ab5131c09eab1af258.tar.gz libimobiledevice-4d8b89223cbc9f530cc650ab5131c09eab1af258.tar.bz2 | |
Timeout support for SSL connections and better timeout handeling.
Diffstat (limited to 'include/libimobiledevice/heartbeat.h')
| -rw-r--r-- | include/libimobiledevice/heartbeat.h | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/include/libimobiledevice/heartbeat.h b/include/libimobiledevice/heartbeat.h index 00734b5..1f5344a 100644 --- a/include/libimobiledevice/heartbeat.h +++ b/include/libimobiledevice/heartbeat.h | |||
| @@ -34,12 +34,14 @@ extern "C" { | |||
| 34 | 34 | ||
| 35 | /** Error Codes */ | 35 | /** Error Codes */ |
| 36 | typedef enum { | 36 | typedef enum { |
| 37 | HEARTBEAT_E_SUCCESS = 0, | 37 | HEARTBEAT_E_SUCCESS = 0, |
| 38 | HEARTBEAT_E_INVALID_ARG = -1, | 38 | HEARTBEAT_E_INVALID_ARG = -1, |
| 39 | HEARTBEAT_E_PLIST_ERROR = -2, | 39 | HEARTBEAT_E_PLIST_ERROR = -2, |
| 40 | HEARTBEAT_E_MUX_ERROR = -3, | 40 | HEARTBEAT_E_MUX_ERROR = -3, |
| 41 | HEARTBEAT_E_SSL_ERROR = -4, | 41 | HEARTBEAT_E_SSL_ERROR = -4, |
| 42 | HEARTBEAT_E_UNKNOWN_ERROR = -256 | 42 | HEARTBEAT_E_NOT_ENOUGH_DATA = -5, |
| 43 | HEARTBEAT_E_TIMEOUT = -6, | ||
| 44 | HEARTBEAT_E_UNKNOWN_ERROR = -256 | ||
| 43 | } heartbeat_error_t; | 45 | } heartbeat_error_t; |
| 44 | 46 | ||
| 45 | typedef struct heartbeat_client_private heartbeat_client_private; | 47 | typedef struct heartbeat_client_private heartbeat_client_private; |
| @@ -118,6 +120,8 @@ heartbeat_error_t heartbeat_receive(heartbeat_client_t client, plist_t * plist); | |||
| 118 | * | 120 | * |
| 119 | * @return HEARTBEAT_E_SUCCESS on success, | 121 | * @return HEARTBEAT_E_SUCCESS on success, |
| 120 | * HEARTBEAT_E_INVALID_ARG when client or *plist is NULL, | 122 | * HEARTBEAT_E_INVALID_ARG when client or *plist is NULL, |
| 123 | * HEARTBEAT_E_NOT_ENOUGH_DATA when not enough data | ||
| 124 | * received, HEARTBEAT_E_TIMEOUT when the connection times out, | ||
| 121 | * HEARTBEAT_E_PLIST_ERROR when the received data cannot be | 125 | * HEARTBEAT_E_PLIST_ERROR when the received data cannot be |
| 122 | * converted to a plist, HEARTBEAT_E_MUX_ERROR when a | 126 | * converted to a plist, HEARTBEAT_E_MUX_ERROR when a |
| 123 | * communication error occurs, or HEARTBEAT_E_UNKNOWN_ERROR | 127 | * communication error occurs, or HEARTBEAT_E_UNKNOWN_ERROR |
