in reply to Design decision, call backs and network data
Use POE! It's meant for this kind of event driven programming. You fire off whatever request to get more info and note in your instance that you're waiting on requested information. Your got_traffic callback checks if you're expecting something or not when it receives a reply. You could even setup an alarm event that clears that state if you don't get a reply back after however long.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Design decision, call backs and network data
by BUU (Prior) on Jul 25, 2004 at 19:23 UTC | |
by Fletch (Bishop) on Jul 25, 2004 at 21:16 UTC |