summaryrefslogtreecommitdiff
path: root/libssh2-sys/lib.rs
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2014-09-18 18:50:51 -0700
committerAlex Crichton <alex@alexcrichton.com>2014-09-18 18:50:51 -0700
commit074152ea964bedc759a10b36db4a04668d03766c (patch)
tree6f23a967e5eea695401168a5d10c88f886fce2ed /libssh2-sys/lib.rs
parent43af5b4f768b082921df4d2a1fb23c246c399a34 (diff)
downloadssh2-rs-074152ea964bedc759a10b36db4a04668d03766c.zip
Bind keepalive
Diffstat (limited to 'libssh2-sys/lib.rs')
-rw-r--r--libssh2-sys/lib.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/libssh2-sys/lib.rs b/libssh2-sys/lib.rs
index ec4e595..44ea38b 100644
--- a/libssh2-sys/lib.rs
+++ b/libssh2-sys/lib.rs
@@ -172,6 +172,11 @@ extern {
want_buf: c_int) -> c_int;
pub fn libssh2_session_handshake(sess: *mut LIBSSH2_SESSION,
socket: libssh2_socket_t) -> c_int;
+ pub fn libssh2_keepalive_config(sess: *mut LIBSSH2_SESSION,
+ want_reply: c_int,
+ interval: c_uint) -> c_int;
+ pub fn libssh2_keepalive_send(sess: *mut LIBSSH2_SESSION,
+ seconds_to_next: *mut c_int) -> c_int;
// agent
pub fn libssh2_agent_init(sess: *mut LIBSSH2_SESSION) -> *mut LIBSSH2_AGENT;