You shouldn't have to worry about tcp.py, api.Protocol is the class where you would implement missing parts of the low level Citadel Protocol and citadel.py should be the only module you need to import and adapt to your needs.
- When you instenciate the Citadel class, you must pass it a config object (this is typically a module, but it doesn't have to).
- The config obect may the following attributes:
- . server_adr : the Citadel server adr (mandatory)
- . server_prt : the Citadel server port (mandatory)
- . admin_login : admin login (optionnal)
- . admin_psw : admin password (optionnal)
- . log : log file (optionnal)
+ When you instenciate the Citadel class, you may pass it a config object (typically a module).
+ The config obect may have the following attributes:
+ . server_adr : the Citadel server adr
+ . server_prt : the Citadel server port
+ . admin_login : admin login
+ . admin_psw : admin password
+If server_adr is omitted localhost will be used, server_prt defaults to 504.
If admin login or password are not specified, you will be asked for them as needed.
If log is not specified (or evaluate to False) nothing will be logged.