swrap: Don't pass NULL pointers to memcpy()
[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 * The proposed way ==> - fd-passing for tcp sockets (for free)
14   Approach:
15   - tdb "in small". So a "db file".
16     - for each socket an entry in the db file
17       (file, mmap, robust mutex. e.g. one file per local ip addr)
18     - socket_info : structure in db. protected by pthread robust mutexes
19     - socket_info_fd : --> pointer into mmap area of db
20     - free-list
21   - fd-passing: pass index in array
22     - the last element we pass is not a fd but the index number in the
23       mmaped file
24 * Use realpath() in socket_wrapper_dir().
25
26 Testing:
27 ---------
28 * Add a test to make sure detect stale file descriptors.
29 * Add a test for sento() to broadcast 255.255.255.255.
30 * Add a test to check that read/readv/send/ only work on connected sockets.
31 * Add unit tests for conversion functions like convert_in_un_remote().