I am doing a small project which monitors all in-coming connections to kx-platform， and customized biz logic would be executed through call-back functions.
I overwrote several event callback functions according to https://code.kx.com/platform/stream/messaging/#event-callbacks, load them to q process along with a customized a INSTANCE_CONFIG file.
Taking .dm.cb.connect for example, after hopen is called from a caller process, overwritten function should be called and corresponding logging messages should have been printed out, yet it seems overwritten function did not work. It is the same to other overwritten functions. Please let me know if you have any thoughts , thank you!
Hello Everyone, the attached is exported package which includes a single example that shows the basic idea of this post. Please have a try (rename the attachment to pkg_evntCallBck.zip and import this into kxplatform) and let me know if you can make overwritten function works
There are two instances in this example, both of them loads overwritten event call back functions during start up. A test case could be: hopen from one to the other and observe whether event functions are called.
Tel: +44 (0)28 3025 2242
Tel: +1 (212) 447 6700
Tel: +61 (0)2 9236 5700