Changeset 1176:f0b328ea2fdb in freeDiameter for doc/dbg_interactive.py.sample
- Timestamp:
- Jun 3, 2013, 3:18:43 PM (11 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
doc/dbg_interactive.py.sample
r1169 r1176 665 665 ############# HOOKS ############ 666 666 667 # TODO 667 def my_hook_cb(type, msg, peer, other, oldpmd): 668 print "callback type ", type, " called: ", msg, other, oldpmd 669 return "this is the new pmd" 670 671 # Create a wrapped fd_hook_data_hdl: 672 datahdl = fd_hook_data_hdl() 673 674 # Register the hook callback: 675 hdl = fd_hook_hdl(1 << HOOK_MESSAGE_SENT, my_hook_cb, datahdl) 676 677 678 668 679 669 680 ############# PEERS ############
Note: See TracChangeset
for help on using the changeset viewer.