![]() |
|||
SRM - Documentation |
|||||
|
^ SRM Documentation ^ Bananas - Using Bananas - Writing Banana components - The eventloop of Bananas |
The eventloop of BananasThe eventloop of a Banana is intialized by the run() member function. Without this, the Banana will not respond to requests from clients. The eventloop then waits until a request is received from a client calling a function on that object. An event can also be posted by a timer function (currently not implemented). When an event is posted, the event handler dispatchs it to one of three possible events. These events are: 1. a function is called; 2. the value of a property is requested or 3. the value of a property is set. Handling function callsWhen an function event occurs, the dispatcher calls the member function of the class. In the examples below you can see how a functioncall is used from a client side script. Both the clientside script and Banana are shown.
|
||||
| Prev: Writing Banana components | Next: FAQ | ||||
|
© 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 by The Vulcan Logic Group |
|||||