![]() |
football
socket abstraction layer
|
#include <football.h>
Data Structures | |
struct | const_iterator |
struct | iterator |
Public Member Functions | |
Service (const FB_SERVICE_OPTIONS options, Service *parent=nullptr) | |
Connection * | newConnectionFromFile (const std::string &filename) |
iterator | begin () |
iterator | end () |
const_iterator | begin () const |
const_iterator | end () const |
![]() | |
void | close (void) |
Initiate shutdown of a service. | |
Connection * | newConnectionFromFile (const std::string &filename) |
Create a new "connection" that reads from a file. More... | |
Connection * | newLoopbackConnection (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... | |
![]() | |
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 Connection * | allocNewConnection () |
Factories for related types instead of generics. | |
![]() | |
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 ServiceBase * | getFromOld (FB_SERVICE *service) |
![]() | |
FB_SERVICE * | service |
Pointer to underlying Football service structure. | |
The service is customized for use with a particular connection type.
Connection | The connection type (extended from Football::Connection) used for the service's connections. |