Re: [PATCH] sms centers

Kalle Marjola <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Message-ID <[email protected]>
On Tue, 6 Aug 2002, Harrie Hazewinkel wrote:

> In order to align/modularize all the SMS center code I went
> through some of the smsc-code. Now to my suprise I see the
> following levels for the creation of SMS centers.

Once, long time ago (opens a big fairytale book), there was
a sms center connection API built in the smsc.c.
Using this API, sms center connection protocols like EMI 1.3,
CIMD, CIMD2, SMPP3.3, Sema OIS and fake smsc were written.

However, that API had several problems and adding new protocols
was an ankward problem. Thus, a new API, called smscconn was
added.

Any new protocols added used this API. Mainly it was EMI2.
Some old protocols were modified to use that new API, namely SMPP and 
fakesmsc (iirc). However, rest of them still used smsc.c, and thus 
'smsc_wrapper' was created so that it was invisible to the rest of Kannel 
that old API was still used somewhere. 

Some old protocols have the functionality of smsc_wrapper merged into them 
(smsc_fake, possibly), thus they do not use the new features of smscconn 
API but do not need smsc.c either. These should be upgraded at some point.

In any case, the most important point is to do any new protocols using 
smscconn, never touch smsc.c API.


PS: Speaking about memory leaks, have you tried 'vangrind'? Just checked 
    it out, seems to be quite handy program.

PPS: Anyone else noticed that Cygwin has some serious thread/signal 
     problems?

-- 
&kalle marjola
product concept manager
NETikos finland (http://www.netikos.fi)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.