Changeset 1228:e5010975da35 in freeDiameter for doc/dbg_interactive.py.sample
- Timestamp:
- Jul 18, 2013, 9:45:37 PM (11 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
doc/dbg_interactive.py.sample
r1176 r1228 468 468 mydwr.send() 469 469 470 # Optional y, a callback can be registered when a request is sent, with an optional object.470 # Optionally, a callback can be registered when a request is sent, with an optional object. 471 471 # This callback takes the answer message as parameter and should return None or a message. (cf. fd_msg_send) 472 472 def send_callback(msg, obj): … … 480 480 mydwr.send(send_callback, some_object) 481 481 482 # Again optional y, a time limit can be specified in this case as follow:482 # Again optionally, a time limit can be specified in this case as follow: 483 483 mydwr.send(send_callback, some_object, 10) 484 484 # In that case, if no answer / error is received after 10 seconds (the value specified),
Note: See TracChangeset
for help on using the changeset viewer.