libssh 0.4.5

This is a new libssh release which fixes the poll(2)-emulation on Windows and adds an option to bind the client to an ip address.

If you are new to libssh read the API reference how to get started. Please join our mailing list or visit our irc channel if you have questions.

You can download libssh 0.4.5 here. For Windows binaries we suggest to use the MSVC and MinGW binaries from the KDE Windows project here. Packages for Fedora are available here and for openSUSE here.

ChangeLog:

  • Added option to bind a client to an ip address.
  • Fixed the ssh socket polling function.
  • Fixed Windows related bugs in bsd_poll().
  • Fixed serveral build warnings.

flattr this!

The Conversation {4 comments}

  1. chengjinsong {Saturday July 24, 2010 @ 11:17 am}

    While using the libssh on the windows2008 server,my code will ended at the function channelpoll(),how it happened?
    Whether the lib supports windows2008 or not ?

  2. gladiac {Saturday July 24, 2010 @ 2:04 pm}

    You should use the bugtracker at http://dev.libssh.org/ and not the comments to report problems :)

  3. xiegang {Thursday August 5, 2010 @ 5:27 am}

    Thanks for all your help before, But I also need your help with some problems:
    1.I need a function that can tell me when the channel has data. I know channel_read can block until the data comes, But I don’t want my program always stop at this function when no data comes, I need a timeout function, just like the select() function on socket. Can you give me some suggestion.
    2.I don’t want to use wsa_poll function because of some problems on windows server 2008. if I want to use bsd_poll when the ws2_32.dll exist on my OS, how to do?
    Look forward to your reply, Thanks.

  4. gladiac {Thursday August 5, 2010 @ 9:01 am}

    Hi,

    to ask these question, you should subscribe to the mailing list. There are developers and users of libssh subscribed and more people can help you to solve your problems.

    1. Take a look at channel_poll().

    2. bsd_poll() is a emulation of a poll function. It uses select() which is limited to 64 file descriptors on Windows and it is slow. You really want to use WSAPoll(). If it doesn’t work, we need to fix it. For this we need detailed information. The best is if you could provide code we can execute and debug.

Speak Your Peace

  • Comment Policy:Could go here if there's a nagging need Login Instructions: Would go here if there's a desire.