aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAris Adamantiadis <aris@0xbadc0de.be>2010-01-24 22:27:44 +0100
committerAris Adamantiadis <aris@0xbadc0de.be>2010-01-24 22:27:44 +0100
commitca499a54956ca778835171688d0d79969aa74dd5 (patch)
tree3675b3e4a187161059489f94732b1bc5b653e261 /include
parent8a1d832f80caf73208a4c844108c794d4f85f92d (diff)
downloadlibssh-ca499a54956ca778835171688d0d79969aa74dd5.tar.gz
libssh-ca499a54956ca778835171688d0d79969aa74dd5.tar.xz
libssh-ca499a54956ca778835171688d0d79969aa74dd5.zip
Made ssh_packet_read asynchronous
Normally that's all that was needed into making SSH1 compliant with the new API. Beware, I have only implemented it, not actually tested it.
Diffstat (limited to 'include')
-rw-r--r--include/libssh/packet.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/include/libssh/packet.h b/include/libssh/packet.h
index 73ad6820..b03bb8ef 100644
--- a/include/libssh/packet.h
+++ b/include/libssh/packet.h
@@ -43,21 +43,17 @@ enum ssh_packet_state_e {
int packet_send(ssh_session session);
#ifdef WITH_SSH1
-int packet_read(ssh_session session);
int packet_send1(ssh_session session) ;
void ssh_packet_set_default_callbacks1(ssh_session session);
SSH_PACKET_CALLBACK(ssh_packet_disconnect1);
SSH_PACKET_CALLBACK(ssh_packet_smsg_success1);
SSH_PACKET_CALLBACK(ssh_packet_smsg_failure1);
+int ssh_packet_socket_callback1(const void *data, size_t receivedlen, void *user);
#endif
int packet_translate(ssh_session session);
-/* TODO: remove it when packet_wait is stripped out from libssh */
-#ifdef WITH_SSH1
-//int packet_wait(ssh_session session,int type,int blocking);
-#endif
int packet_flush(ssh_session session, int enforce_blocking);