football
socket abstraction layer
Data Structures | Public Member Functions | Protected Member Functions
Football::Service< Connection > Class Template Reference

Football Service. More...

#include <football.h>

Inheritance diagram for Football::Service< Connection >:
Football::ServiceBase Football::Thingie

Data Structures

struct  const_iterator
 
struct  iterator
 

Public Member Functions

 Service (const FB_SERVICE_OPTIONS options, Service *parent=nullptr)
 
ConnectionnewConnectionFromFile (const std::string &filename)
 
iterator begin ()
 
iterator end ()
 
const_iterator begin () const
 
const_iterator end () const
 
- Public Member Functions inherited from Football::ServiceBase
void close (void)
 Initiate shutdown of a service.
 
ConnectionnewConnectionFromFile (const std::string &filename)
 Create a new "connection" that reads from a file. More...
 
ConnectionnewLoopbackConnection (int *loopback)
 Create a new connection that loops back to the service. More...
 
virtual ssize_t conditional_print (bool(*callback)(FB_CONNECTION *), const std::string &message) override
 
virtual void serviceShutdown (void)
 Invoked when a service is shutting down. More...
 
- Public Member Functions inherited from Football::Thingie
ssize_t print (const std::string &message)
 Add a string to the output queues.
 
ssize_t conditional_broadcast (bool(*callback)(FB_CONNECTION *), const std::string &message)
 Send a message to some output queues depending on the callback function return value.
 
ssize_t printf (const char *format,...)
 Add messages to output queues. More...
 
ssize_t vprintf (const char *format, va_list parameters)
 
ssize_t bprintf (const char *format,...)
 
ssize_t bvprintf (const char *format, va_list parameters)
 
ssize_t cbprintf (bool(*callback)(FB_CONNECTION *), const char *format,...)
 
ssize_t cbvprintf (bool(*callback)(FB_CONNECTION *), const char *format, va_list parameters)
 
virtual std::streamsize xsputn (const char_type *data, std::streamsize count) override
 
virtual int_type overflow (int_type c) override
 

Protected Member Functions

virtual ConnectionallocNewConnection ()
 Factories for related types instead of generics.
 
- Protected Member Functions inherited from Football::ServiceBase
virtual void * myThingie (void) const final
 
 ServiceBase (FB_SERVICE_OPTIONS options, ServiceBase *parent=nullptr)
 Create a new service with requested options. More...
 

Additional Inherited Members

- Static Protected Member Functions inherited from Football::ServiceBase
static ServiceBasegetFromOld (FB_SERVICE *service)
 
- Protected Attributes inherited from Football::ServiceBase
FB_SERVICEservice
 Pointer to underlying Football service structure.
 

Detailed Description

template<class Connection>
class Football::Service< Connection >

Football Service.

The service is customized for use with a particular connection type.

Template Parameters
ConnectionThe connection type (extended from Football::Connection) used for the service's connections.

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