[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Restrictions about setting callbacks
[Thread Prev] | [Thread Next]
[Date Prev] | [Date Next]
- Subject: Restrictions about setting callbacks
- From: Alberto Garcia <agarciaillera@xxxxxxxxx>
- Reply-to: libssh@xxxxxxxxxx
- Date: Fri, 1 Feb 2019 16:31:24 -0800
- To: libssh@xxxxxxxxxx
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