pianod2
multisource multiuser scriptable networked music player
Static Public Member Functions | Static Private Member Functions | Private Attributes | List of all members
Football::Arena Class Reference

Football Arena: Manager for services. More...

#include <football.h>

Static Public Member Functions

static bool ready (void)
 Determine if the Arena (service manager) is ready. More...
 
static bool poll (void)
 Poll services. More...
 
static bool pollWait (void)
 Poll services. More...
 
static bool pollUntil (time_t untilwhen)
 Poll services. More...
 
static bool pollWithTimeout (double timeout)
 pollWithTimeout. More...
 

Static Private Member Functions

static bool handleEvent (const FB_EVENT *)
 Process a Football event by dispatching a call to the connection's. More...
 

Private Attributes

friend ServiceBase
 

Detailed Description

Football Arena: Manager for services.

The arena runs all the services, providing event management and dispatching. Services are automatically added to the arena when created; use the Arena's poll routines to service them and their connections. Events are dispatched to the virtual methods provided in Football::Connection, with support from Football::Interpreter; the poll return value indicates if service was done (or false if a timeout happened).

Member Function Documentation

◆ handleEvent()

bool Football::Arena::handleEvent ( const FB_EVENT event)
staticprivate

Process a Football event by dispatching a call to the connection's.

Parameters
eventThe standard C Football event.
Returns
true if an event was polled, false if a timeout happened.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ poll()

bool Football::Arena::poll ( void  )
static

Poll services.

Return immediately if there is no activity.

Here is the call graph for this function:

◆ pollUntil()

bool Football::Arena::pollUntil ( time_t  until_when)
static

Poll services.

If idle, wait until the specified time for activity.

Parameters
until_whenWhen to give up waiting.
Returns
true if input was processed, false if timeout.
Here is the call graph for this function:

◆ pollWait()

bool Football::Arena::pollWait ( void  )
static

Poll services.

Wait indefinitely for activity if necessary.

Returns
true
Here is the call graph for this function:

◆ pollWithTimeout()

bool Football::Arena::pollWithTimeout ( double  duration)
static

pollWithTimeout.

Parameters
durationThe duration to wait for activity before timeout.
Returns
true if input was processed, false if timeout.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ ready()

bool Football::Arena::ready ( void  )
static

Determine if the Arena (service manager) is ready.

Returns
true if ready, false otherwise.
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ ServiceBase

friend Football::Arena::ServiceBase
private

The documentation for this class was generated from the following files: