On Thu, 17 Jun 2010, Thomas Stover wrote:
> 2) Daniel mentions the busy loop problem needs to be addressed with
> BLOCK_ADJUST(). Where is that macro defined?
See attachment for my suggested fix.
> 3) Thinking this through further down the line brings up a related
> question for me. While in many cases the agent operations would be part of
> a program's startup, and therefore blocking for them to complete might be
> acceptable, what if it was not - say in a gui program without bringing
> threads into the picture. If I had an event loop style program where I
> check for input on sockets and then call libssh2_* and other functions in
> response to stimulus, could the same be done with the agent socket? ie do
> my own poll on agent->fd and on session->socket_fd, then call
> libssh2_agent_userauth() until either error or success somehow?
Yes, you should be able to do exactly that.
-- / daniel.haxx.se
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel