Changeset 1169:11724ff78638 in freeDiameter for doc
- Timestamp:
- Jun 1, 2013, 3:23:55 AM (11 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
doc/dbg_interactive.py.sample
r1078 r1169 30 30 31 31 # 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. 34 35 35 36 … … 43 44 44 45 # Change the global debug level of the framework (cvar contains all global variables) 45 cvar.fd_g_debug_lvl = FULL46 cvar.fd_g_debug_lvl = 1 46 47 47 48 … … 53 54 # Note: the python version does not support printf-like argument list. The formating should be done in python. 54 55 # See SWIG documentation about varargs functions for more information. 55 fd_log _debug_fstr(None, "3 + 4 = %d" % (7))56 fd_log(FD_LOG_NOTICE, "3 + 4 = %d" % (7)) 56 57 57 58 58 59 # 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) 60 conf = fd_conf_dump(); 61 print conf; 62 63 fd_peer_dump_list(0) 64 fd_servers_dump(0) 65 fd_ext_dump(0) 62 66 63 67 … … 659 663 660 664 665 ############# HOOKS ############ 666 667 # TODO 661 668 662 669 ############# PEERS ############
Note: See TracChangeset
for help on using the changeset viewer.