Changes between Version 7 and Version 8 of Internal/OpenFlow/Controllers/Nox
- Timestamp:
- Nov 18, 2010, 6:47:04 PM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Internal/OpenFlow/Controllers/Nox
v7 v8 152 152 153 153 == 3.2. Event triggers == 154 Event triggers allow you to define your controller's behavior. This is done by defining Disposition type functions that you may (or may not) have registered using `register_handler`. The configure function allows you to define which Dispositions your controller will immediately respond to based on inputs; Other, "unregistered" Disposition functions can be called from these functions that you register with `configure`. 155 154 156 === 3.2.1 The Disposition type === 157 An Event trigger (Dispostiton function) is declared like this: 158 {{{ 159 Disposition 160 SPRouting::handle_flow_in(const Event& e) 161 { 162 ... 163 }}} 164 When actually called, the `register_handler` uses Boost's `bind` function to associate input flags with the arguments for this Disposition function. 155 165 156 166