Hi Jimmy, Kannel wap library interface is located in wap directory, in module wap.h. It is used (upwards) in gw/wap-appl.c and gw/wap_push_ota.c (downwards) in gw/wapbox.c. These modules show how a wsp event is constructed, too.
You send an event to a layer with dispatch functions. Events correspond closely to service primitives defined in wapforum specs. (Push ones have additional routing fields). You must init and shutdown every module, as done in gw/wapbox.c. This is because a thread cannot set its own mutexes without causin a race condition. Aarno ----- Original Message ----- From: "Jimmy Monin" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, May 11, 2002 12:39 PM Subject: Help: Isolating the WSP API Hi there, I'm new to Kannel. I have to adress the WSP layer, in order to do some testing. The problem is that I can't find some __clear__ API, that corresponds to the protocol as shown in the official spec( http://www.wapforum.org/docs ). I want to know how I can do that directly (I must not use any layer upper than this one). By looking at wsp-unit.c and wsp-session.c, I found some hints, but it seems like there's no such thing as a socket API- like library. Things are still confused in my mind, sorry! Thanks in advance, Jimmy --- Jimmy Monin ([EMAIL PROTECTED] - http://jimmy.monin.org) Elève-ingénieur ENSEIRB en 2e année, filière Informatique