1 SILC Runtime Toolkit 1.2 and beyond
2 ===================================
4 NOTE: Any item that doesn't have (***DONE) in it, isn't done yet. The
5 (***TESTING NEEDED) means that the item has been done but not yet properly
8 NOTE: A TODO entry does not mean that it is ever going to be done. Some
9 of the entries may be just ideas, good, bad or ugly. If you want to work
10 on some of the TODO entries simply let us know about it by dropping a note
11 to silc-devel mailing list or appear on 'silc' channel on SILCNet.
14 Runtime library, lib/silcutil/
15 ==============================
17 o Add SILC Zip API, compression.
19 o Unix socket support to Socket Stream API (local socket stream).
21 o file removing, chmod, rmmod, etc. chdir, rmdir, stat, etc. to
22 lib/silcutil/silcfileutil.h.
28 o Implement silc_get_num_cpu.
30 o silc_file_readfile and silc_file_writefile should perhaps do the thing
31 with mmap, as it's probably a bit faster.
33 o silc_malloc et. al. to respect --with-alignment.
35 o Fix universal time decoding (doesn't accept all formats) in silctime.c.
37 o Additional scheduler changes: optimize silc_schedule_wakeup. Wakeup
38 only if the scheduler is actually waiting something. If it is
39 delivering tasks wakeup is not needed.
41 o silc_stringprep to non-allocating version.
43 o Add builtin SOCKS and HTTP Proxy support, well the SOCKS at least.
44 SILC currently supports SOCKS4 and SOCKS5 but it needs to be compiled
47 o Simple SILC Rand API for pseudo-random numbers. (***DONE)
49 o Add directory opening/traversing functions (***DONE, TODO Windows & Symbian)
51 o regex from /lib/contrib to lib/silcutil, define SILC Regex API. (***DONE)
53 o Add functions to manipulate environment variables. (***DONE)
55 o Add functions to loading shared/dynamic object symbols (replaces the
56 SIM library (lib/silcsim) and introduces generic library). Add this
57 to lib/silcutil/silcdll.[ch]. (***TESTING NEEDED WIN32, TODO Symbian)
59 o silc_getopt routines (***DONE)
61 o The SILC Event signals. Asynchronous events that can be created,
62 connected to and signalled. Either own event routines or glued into
63 SilcSchedule. (***DONE)
65 o If the event signals are added, the SILC_PARAM_* stuff needs to be
66 moved from silcbuffmt.h to silctypes.h or something similar. (***DONE)
68 o In case the SILC Events are done we shall create a new concept of
69 parent and child SilcSchedule's. When new SilcSchedule is created a
70 parent can be associated to it. This association could be done either
71 directly by the parent or by any other children. This way the signals
72 would in effect be global and would reach all children schedulers.
74 This relationship would be associative only. The schedulers are still
75 independent and run independently from each other. All schedulers
76 would be linked and could be accessed from any of the schedulers.
77 It should be possible to retrieve the parent and enumerate all children
78 from any of the schedulers.
81 o Base64 to an own API (***DONE)
85 o silc_hash_table_replace -> silc_hash_table_set. Retain support for
86 silc_hash_table_replace as macro. (***DONE)
88 o SilcStack aware SilcHashTable. (***DONE)
90 o SilcStack aware SilcDList. (***DONE)
92 o Thread pool API. Add this to lib/silcutil/silcthread.[ch]. (***DONE)
94 o Add new functions to SilcStack API in lib/silcutil/silcstack.[ch]. Add
95 silc_stack_[set|get]_alignment. It defines the default alignment used
96 when allocating memory from stack. It can be used to specify special
97 alignments too when needed (such as for hardware devices like crypto
98 accelerators). Move also the low level silc_stack_malloc and
99 silc_stack_realloc from silcstack_i.h to silcstack.h. Remove the
100 _ua unaligned memory allocation routines. Remove unaligned memory
101 allocation possibility. (***DONE)
103 o silc_stack_alloc shouldn't require multiple by 8 size argument, it
104 should figure it out itself. (***DONE)
106 o Add '%@' format to silc_snprintf functions.
109 o SILC Tls (Thread-local storage) API to lib/silcutil/silcthread.[ch].
112 o Change silc_gettimeofday on Unix to use clock_gettime with REALTIME
113 clock if it is available, otherwise use gettimeofday(). (***DONE)
115 o Generic SilcResult that includes all possible status and
116 error conditions and generic errno API. (***DONE)
118 (o Structured log messages to Log API. Allows machine readable log
119 messages. Would allow sending of any kind of data in a log message.) maybe
121 (o Change some stream routines (like socket stream API) to accept ANY
122 stream and use silc_stream_get_root to get the socket stream from the
123 given stream. This will make various stream APIs more easier to use
124 when user doesn't have to dig up the correct stream.
126 Add silc_stream_get_root and add get_root stream operation. It
127 returns the root of the stream or NULL if stream doesn't have root.) maybe
129 (o SilcIpAddr abstraction. Ipv4 and Ipv6 support to the abstaction.)
132 (o SILC specific socket creation/closing routines to silcnet.h, wrappers
133 to all send(), recv(), sendto() etc. Bad thing is that we'd have to
134 define all socket options, sockaddrs, etc.) maybe
136 (o Fast mutex implementation. Fast rwlock implementation. Mutex and
137 rwlock implementation using atomic operations.) not for now.
140 SILC XML Library, lib/silcxml/
141 ==============================
143 o SILC XML API (wrapper to expat). Look at the expat API and simplify
144 it. The SILC XML API should have at most 8-10 API functions. It should
145 be possible to create full XML parser with only one function. And, it
146 should be possible to have a function that is able to parse an entire
147 XML document. It should also have a parser function to be able to
148 parse a stream of XML data (SilcStream). It MUST NOT have operations
149 that require multiple function calls to be able to execute that one
150 operation (like creating parser).
160 o Something needs to be thought to the logging globals as well,
161 like silc_debug etc. They won't work on EPOC. Perhaps logging
162 and debugging is to be disabled on EPOC. The logging currently works
163 by it cannot be controlled, same with debugging. SILC Global API
164 MUST be used with all globals on Symbian.
166 o gethostname() returns "Function not implemented". Others may return
167 the same. We should fix that probably to use RHostResolver and
170 o silc_thread_exit should call User::Exit().