Added TODO file, extended configuration file
Added logging options (global and interfaces) Added IP address option for interfaces Removed comments around interface definition Signed-off-by: Gergely Polonkai (W00d5t0ck) <polesz@w00d5t0ck.info>
This commit is contained in:
parent
e71fd2cb07
commit
04ce2dc1f3
66
TODO
Normal file
66
TODO
Normal file
@ -0,0 +1,66 @@
|
|||||||
|
[ ] Modular design
|
||||||
|
[ ] Authentication and authorization
|
||||||
|
[ ] SQLite3
|
||||||
|
[ ] MySQL
|
||||||
|
[ ] PostgreSQL
|
||||||
|
[ ] LDAP
|
||||||
|
[ ] Roster storage
|
||||||
|
[ ] SQLite3
|
||||||
|
[ ] MySQL
|
||||||
|
[ ] PostgreSQL
|
||||||
|
[ ] LDAP?
|
||||||
|
[ ] Group chat
|
||||||
|
[ ] File sending
|
||||||
|
[ ] Server-side chat logging
|
||||||
|
|
||||||
|
[ ] GnuTLS
|
||||||
|
[X] gLib
|
||||||
|
[ ] gNet
|
||||||
|
|
||||||
|
Hooks:
|
||||||
|
|
||||||
|
[ ] c2s-message
|
||||||
|
[ ] s2c-message
|
||||||
|
[ ] s2s-message
|
||||||
|
[ ] client-authentication
|
||||||
|
[ ] client-authorization
|
||||||
|
[ ] client-presence-change
|
||||||
|
|
||||||
|
Configuration file:
|
||||||
|
|
||||||
|
[X] Global logging
|
||||||
|
[X] Modules
|
||||||
|
[X] Module directory
|
||||||
|
[X] Modules to load on startup
|
||||||
|
[o] Interface
|
||||||
|
[X] IP
|
||||||
|
[X] Port
|
||||||
|
[X] Domain
|
||||||
|
[-] Certificate file
|
||||||
|
[-] Key file
|
||||||
|
[X] Logging
|
||||||
|
[X] Log destination: syslog, file
|
||||||
|
[X] Log options: connection events, etc.
|
||||||
|
|
||||||
|
Code flow:
|
||||||
|
|
||||||
|
[X] Command line processing (Command line option can override the place of the configuration file)
|
||||||
|
[X] Configuration file processing (Command line options override configuration global values like modules directory, log destination)
|
||||||
|
[ ] Create logger thread
|
||||||
|
[ ] Start logging according to configuration
|
||||||
|
[ ] Load modules
|
||||||
|
[ ] Load module file
|
||||||
|
[ ] Run initialization function to...
|
||||||
|
[ ] Register extensions
|
||||||
|
[ ] Create special interfaces
|
||||||
|
[ ] Register to hooks
|
||||||
|
[ ] Create interfaces
|
||||||
|
[ ] Create listener thread and sockets
|
||||||
|
[ ] Create stream processing threads
|
||||||
|
[ ] Associate stream processing threads with sockets
|
||||||
|
[ ] Assign extensions to stream processing threads
|
||||||
|
[ ] Process extension configuration directives
|
||||||
|
[ ] Start socket thread
|
||||||
|
When new connection arrives
|
||||||
|
[ ] Create peer object
|
||||||
|
[ ] Associate with corresponding stream interface
|
@ -1,5 +1,22 @@
|
|||||||
<?xml version="1.0"?>
|
<?xml version="1.0"?>
|
||||||
<wxmppd>
|
<wxmppd>
|
||||||
|
<logging>
|
||||||
|
<info>
|
||||||
|
<syslog>
|
||||||
|
<facility>DAEMON</facility>
|
||||||
|
<loglevel>INFO</loglevel>
|
||||||
|
<options>PID</options>
|
||||||
|
</syslog>
|
||||||
|
</info>
|
||||||
|
<error>
|
||||||
|
<syslog>
|
||||||
|
<facility>DAEMON</facility>
|
||||||
|
<loglevel>ERR</loglevel>
|
||||||
|
<options>PID</loglevel>
|
||||||
|
</syslog>
|
||||||
|
</error>
|
||||||
|
<debug />
|
||||||
|
</logging>
|
||||||
<options>
|
<options>
|
||||||
<keys-file>@sysconfdir@/wxmppd/keys.xml</keys-file>
|
<keys-file>@sysconfdir@/wxmppd/keys.xml</keys-file>
|
||||||
</options>
|
</options>
|
||||||
@ -10,10 +27,27 @@
|
|||||||
<load>mod-users-sqlite3</load>
|
<load>mod-users-sqlite3</load>
|
||||||
<load>mod-roster-sqlite3</load>
|
<load>mod-roster-sqlite3</load>
|
||||||
</modules>
|
</modules>
|
||||||
<!--
|
|
||||||
<interface>
|
<interface>
|
||||||
<domain>chat.example.org</domain>
|
<domain>chat.example.org</domain>
|
||||||
|
<ip>127.0.0.1</ip>
|
||||||
<port>5222</port>
|
<port>5222</port>
|
||||||
|
<logging>
|
||||||
|
<!-- As error and info tags are not specified, the global options will be used for them -->
|
||||||
|
<connections>
|
||||||
|
<syslog>
|
||||||
|
<facility>DAEMON</facility>
|
||||||
|
<loglevel>INFO</loglevel>
|
||||||
|
<options>PID</options>
|
||||||
|
</syslog>
|
||||||
|
</connections>
|
||||||
|
<authentication>
|
||||||
|
<file>
|
||||||
|
<path>/var/log/wxmppd/auth.log</path>
|
||||||
|
<rotate>1d</rotate>
|
||||||
|
<options>PID</options>
|
||||||
|
</syslog>
|
||||||
|
</authentication>
|
||||||
|
</logging>
|
||||||
<extensions>
|
<extensions>
|
||||||
<extension>
|
<extension>
|
||||||
<name>layer-tls</name>
|
<name>layer-tls</name>
|
||||||
@ -34,5 +68,4 @@
|
|||||||
</extension>
|
</extension>
|
||||||
</extensions>
|
</extensions>
|
||||||
</interface>
|
</interface>
|
||||||
-->
|
|
||||||
</wxmppd>
|
</wxmppd>
|
||||||
|
Loading…
Reference in New Issue
Block a user