Navigation


Changeset 1169:11724ff78638 in freeDiameter for doc


Ignore:
Timestamp:
Jun 1, 2013, 3:23:55 AM (11 years ago)
Author:
Sebastien Decugis <sdecugis@freediameter.net>
Branch:
default
Phase:
public
Message:

Some cleanups in dbg_interactive extension

File:
1 edited

Legend:

Unmodified
Added
Removed
  • doc/dbg_interactive.py.sample

    r1078 r1169  
    3030
    3131# The remaining of this file gives some examples of how to use the python interpreter.
    32 # Note that the support is not yet totally usable. You'll probably have to extend some classes
    33 # or write some typemaps in the source code of the extension to do what you want.
     32# Note that at the moment not 100% of the framework is usable.
     33# You may have to extend some classes or write some typemaps in the source code
     34# of the extension to do what you want.
    3435
    3536
     
    4344
    4445# Change the global debug level of the framework (cvar contains all global variables)
    45 cvar.fd_g_debug_lvl = FULL
     46cvar.fd_g_debug_lvl = 1
    4647
    4748
     
    5354# Note: the python version does not support printf-like argument list. The formating should be done in python.
    5455#       See SWIG documentation about varargs functions for more information.
    55 fd_log_debug_fstr(None, "3 + 4 = %d" % (7))
     56fd_log(FD_LOG_NOTICE, "3 + 4 = %d" % (7))
    5657
    5758
    5859# Display some framework state information
    59 r = fd_event_send(cvar.fd_g_config.cnf_main_ev, FDEV_DUMP_PEERS, 0, None)
    60 r = fd_event_send(cvar.fd_g_config.cnf_main_ev, FDEV_DUMP_SERV, 0, None)
    61 r = fd_event_send(cvar.fd_g_config.cnf_main_ev, FDEV_DUMP_EXT, 0, None)
     60conf = fd_conf_dump();
     61print conf;
     62
     63fd_peer_dump_list(0)
     64fd_servers_dump(0)
     65fd_ext_dump(0)
    6266
    6367
     
    659663
    660664
     665############# HOOKS ############
     666
     667# TODO
    661668
    662669############# PEERS ############
Note: See TracChangeset for help on using the changeset viewer.