session_t is OS dependent, should be a void*
Status: Alpha
Brought to you by:
obgm
I'm porting tinydtls (with wakaama) to mbed LPC1768 which use a LWIP stack.
The session management concern me:
The code is using uip or posix system calls, depending of define.
In wakaama we have exactly the same problem: managing session representing different endpoint (LWM2M servers), but it's up to the user to provide an implementations. the wakaama API accept "void*" as session and an example is provided.
It's up to the user to implement the session code.
For example when sending a UDP packet, we just call a user callback with the buffer to send and the session (void*).
Today with tinydtls I need to modify "session.h" and "session.c" for using my custom session management code.
I am not sure how easy this would be. One issue is that the dtls engine must know the transport endpoint parameters. A similar thing has been done for the libcoap port to lwip by chrysn.