swrap: Add common exit point to swrap_getsockopt
[socket_wrapper.git] / TODO
1 TODO
2 =====
3
4 This is the TODO list of this project. It should give you some hints of things
5 which need to be implemented. If you can spend some time on this project, then
6 look at the list below.
7
8
9 Library:
10 ---------
11
12 Goals:
13 * Thread safety
14 * The proposed way ==> - fd-passing for tcp sockets (for free)
15   Approach:
16   - tdb "in small". So a "db file".
17     - for each socket an entry in the db file
18       (file, mmap, robust mutex. e.g. one file per local ip addr)
19     - socket_info : structure in db. protected by pthread robust mutexes
20     - socket_info_fd : --> pointer into mmap area of db
21     - free-list
22   - fd-passing: pass index in array
23     - the last element we pass is not a fd but the index number in the
24       mmaped file
25 * Use realpath() in socket_wrapper_dir().
26
27 Testing:
28 ---------
29 * Add a test to make sure detect stale file descriptors.
30 * Add a test for sento() to broadcast 255.255.255.255.
31 * Add a test to check that read/readv/send/ only work on connected sockets.
32 * Add unit tests for conversion functions like convert_in_un_remote().
33 * Add threaded tests.