football
socket abstraction layer
Static Public Member Functions
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...
 

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

◆ poll()

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

Poll services.

Return immediately if there is no activity.

◆ 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.

◆ pollWait()

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

Poll services.

Wait indefinitely for activity if necessary.

Returns
true

◆ 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.

◆ ready()

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

Determine if the Arena (service manager) is ready.

Returns
true if ready, false otherwise.

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