#include <InetTransportManager.h>
Inheritance diagram for InetTransportManager:
Public Member Functions | |
InetTransportManager () | |
constructor | |
virtual | ~InetTransportManager () |
destructor | |
void | serveForever () |
Run active transports. | |
void | runCycle () |
Run active transports once. | |
void | runCycle (const int timeout) |
Run active transports once with given timeout. | |
void | addInetTransport (InetTransport *const itrans) |
Add an InetTransport to the map of active transports. | |
void | delInetTransport (InetTransport *const itrans) |
Remove a transport from the map of active transports. | |
void | addService (Service *const service) |
Add a service to the map of active transport. | |
void | delService (Service *const service) |
Remove a service from the map of active transports. | |
void | getTransports (std::vector< InetTransport * > &transports) const |
get pointers to transports in a vector | |
Protected Member Functions | |
bool | addHandleToPollfd (const int handle) |
add handle entry to _pollfd | |
bool | delHandleFromPollfd (const int handle) |
delete handle entry from _pollfd | |
void | showState () |
show state of this object (for debugging) | |
void | validatePollfd () |
show contents of _pollfd struct array (for debugging) |
Martin Rumori
|
add handle entry to _pollfd
|
|
Add an InetTransport to the map of active transports.
|
|
Add a service to the map of active transport.
Implements ServiceManager. |
|
delete handle entry from _pollfd
|
|
Remove a transport from the map of active transports.
|
|
Remove a service from the map of active transports.
Implements ServiceManager. |
|
get pointers to transports in a vector
|
|
Run active transports once with given timeout. This method looks for activity on all ports listened to by the transports in the transport map and calls all necessary transports to process the data.
|
|
Run active transports once. This method looks for activity on all ports listened to by the transports in the transport map and calls all necessary transports to process the data.
|
|
Run active transports. This method waits for activity on all ports listened to by the transports in the transport map and calls the corresponding transports if necessary.
|