[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Restrictions about setting callbacks


Hi,

I'm using ssh_set_message_callback() to get callbacks for every message
received.

In the callback I set other callbacks to the channel using:
ssh_set_channel_callbacks() and ssh_event_add_fd();

In that case everything works fine.

The problem is that I need to make a connection and I don't want to block
in the message callback so in the case that the connection I'm doing
timeouts I don't block. So I created a thread that will connect and set the
callbacks to the channel. The problem is that setting the channel callbacks
from the new trhead seems not to make any effect and the callbacks are
never called.


Is this a known issue? Am I missing something?

Thank you

-- 
Alberto García Illera

GPG Public Key <https://goo.gl/yshdwh>

Archive administrator: postmaster@lists.cynapses.org