Menu

#11 session_t is OS dependent, should be a void*

1.0
accepted
None
2015-03-24
2015-03-02
No

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.

Discussion

  • Olaf Bergmann

    Olaf Bergmann - 2015-03-24
    • status: open --> accepted
    • assigned_to: Olaf Bergmann
     
  • Olaf Bergmann

    Olaf Bergmann - 2015-03-24

    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.

     
Monday.com Logo