HI Oded, --On Sunday, May 19, 2002 8:45 AM +0200 Oded Arbel <[EMAIL PROTECTED]> wrote:
> It's easy to add a new "SMSC" module using the current API. all you need > to do is write a new C file for your module, supply the necessary > callbacks and register it in smscconn_p.h and smscconn.c. > > see the recently submitted smsc_cgw.c for a good example. I see what you mean. I was actually thinking of a more modular approach for the main functionality via which no other part/C-code needs to be changed in order to add this extra module. Correct me if I am wrong but with the smsc.c file one still needs to adapt this file in order to have an extra module. Perhaps, I did not explain my thoughts so well, but I want to start additional threads without patching the core code. Just wondering who on this list provides additional products around Kannel by patching the core?? I would for SNMP. Currently, the 'bearerbox' process spawns of 6 threads and I (as part of a prototype) have to spawn an extra thread for the SNMP agent in order to provide near-realtime statistics of the complete WAP gateway. As for an API, I see only a need for start_thread and stop_thread so far, but m aybe there would be more, like a data parameter. Followed by that maybe additional configuration APIs, since each module has potentially an additional private configuration part. I hope this explain it better. Now more a point of implementation. I believe there are 2 things important. The end-goal and a smooth transition in which all the time the gateway can work. The transition can be done quick and rigurous or step by step (just slower). I think the step by step approach is preferred, since every one can check and keep doing there own parts of development as well test it all. Therefore, I also believe we should agree on some way forward in which we first make all calls to various module are threads equal (The smsc.c call are already that way). That also is more internals and thus less influencial for external module development. regards, Harrie Internet Management Consulting tel: +39-3474932300 mailto:[EMAIL PROTECTED] http ://www.mod-snmp.com/
