I’ve extended kdb w32 with a windows dll written in c++ and compiled with mingw. Ive had trouble figuring out how to register a callback in the main q thread via sd1(). In Linux, I’d use eventfds… I see the kx documentation suggests using selectable socketpair. I’ve not been able to get that to work. Are there alternatives? Has anyone got this work and has a working example? Thanks
It is not as trivial on Windows, but not too difficult.
There are two Github projects you might take a look to get some ideas from:
1) https://github.com/ncm/selectable-socketpair/
2) https://github.com/FlyingOE/q\_Wind/blob/master/win32.util/SocketPair.cpp