fd in client_connected_cb in sipe-ft.c

Developers
2011-06-03
2013-03-28
  • Jochen De Smet
    Jochen De Smet
    2011-06-03

    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?

     
  • Jakub Adam
    Jakub Adam
    2011-06-03

    Hi Jochen,

    commit 8e04b9 should implement changes that you want.

     
  • Jochen De Smet
    Jochen De Smet
    2011-06-03

    Looks perfect. tyvm.