diff options
author | Andreas Schneider <mail@cynapses.org> | 2009-05-11 10:05:47 +0000 |
---|---|---|
committer | Andreas Schneider <mail@cynapses.org> | 2009-05-11 10:05:47 +0000 |
commit | d008e5aeb8aeaf96625c02d5fa72e79973d8c21c (patch) | |
tree | 252fa3658a52b4d8339c7768c2b335af7a684882 /libssh | |
parent | 2934765c76726a028cd19aee2f901905a469ad9d (diff) | |
download | libssh-d008e5aeb8aeaf96625c02d5fa72e79973d8c21c.tar.gz libssh-d008e5aeb8aeaf96625c02d5fa72e79973d8c21c.tar.xz libssh-d008e5aeb8aeaf96625c02d5fa72e79973d8c21c.zip |
Added a ssh_bind_set_fd() function.
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@754 7dcaeef0-15fb-0310-b436-a5af3365683c
Diffstat (limited to 'libssh')
-rw-r--r-- | libssh/server.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libssh/server.c b/libssh/server.c index 9473c9a2..9cc59ef7 100644 --- a/libssh/server.c +++ b/libssh/server.c @@ -167,10 +167,14 @@ void ssh_bind_set_blocking(SSH_BIND *ssh_bind, int blocking) { ssh_bind->blocking = blocking ? 1 : 0; } -int ssh_bind_get_fd(SSH_BIND *ssh_bind) { +socket_t ssh_bind_get_fd(SSH_BIND *ssh_bind) { return ssh_bind->bindfd; } +void ssh_bind_set_fd(SSH_BIND *ssh_bind, socket_t fd) { + ssh_bind->bindfd = fd; +} + void ssh_bind_fd_toaccept(SSH_BIND *ssh_bind) { ssh_bind->toaccept = 1; } |