Jochen De Smet
Miranda normally uses HANDLEs to identify connections, not fds. This works fine for most things since the sipe core doesn't explicitly deal with file descriptiors, it's all pushed to the backend.
There seems to be one exception, i.e. the function in the subject. client_connected_cb expects to receive an fd and proceeds to do an (fd<0) check, and the ft is also passed on to sipe_backend_ft_start (so I guess that's two functions)
Can this be changed so the core code never has to see/touch/pass the fd directly?
commit 8e04b9 should implement changes that you want.
Looks perfect. tyvm.