#include <lcshm.h>
Public Member Functions | |
| Listener () | |
| Construct a block of Listeners. This constructs an uninitialized Listener block. | |
| Listener (boost::uint8_t *baseaddr) | |
| Construct a block Listeners at the specified address. | |
| ~Listener () | |
| Delete the Listener block. | |
| bool | addListener (const std::string &name) |
| Create a new Listener in the memory segment. | |
| bool | findListener (const std::string &name) |
| See if a connection name exists in our list of Listeners. | |
| bool | removeListener (const std::string &name) |
| Remove the Listener for this Object. | |
| std::auto_ptr< std::vector < std::string > > | listListeners () |
| List the Listeners for this memory segment. | |
| void | setBaseAddress (boost::uint8_t *addr) |
| Set the base address for the block of Listeners. | |
| boost::uint8_t * | getBaseAddress () |
| Set the base address for the block of Listeners. | |
Protected Attributes | |
| std::string | _name |
| boost::uint8_t * | _baseaddr |
Manipulate the list of LocalConnection Listeners. We've made this a separate class from LocalConnection as it's used standalone for the dumpshm utility to dump the Listener lists.
| cygnal::Listener::Listener | ( | ) |
Construct a block of Listeners. This constructs an uninitialized Listener block.
| cygnal::Listener::Listener | ( | boost::uint8_t * | x | ) |
Construct a block Listeners at the specified address.
| baseaddr | The address to use for the block of Listeners. |
References _baseaddr.
| cygnal::Listener::~Listener | ( | ) |
Delete the Listener block.
| bool cygnal::Listener::addListener | ( | const std::string & | name | ) |
| bool cygnal::Listener::findListener | ( | const std::string & | name | ) |
See if a connection name exists in our list of Listeners.
| name | An ASCII string that is the name of the Listener to search for. |
| boost::uint8_t* cygnal::Listener::getBaseAddress | ( | ) | [inline] |
Set the base address for the block of Listeners.
Referenced by cygnal::LcShm::formatHeader().
| std::auto_ptr< vector< string > > cygnal::Listener::listListeners | ( | ) |
List the Listeners for this memory segment.
References _baseaddr.
Referenced by cygnal::LcShm::dump().
| bool cygnal::Listener::removeListener | ( | const std::string & | name | ) |
| void cygnal::Listener::setBaseAddress | ( | boost::uint8_t * | addr | ) | [inline] |
Set the base address for the block of Listeners.
| addr | The address for the block of Listeners. |
Referenced by cygnal::LcShm::connect().
boost::uint8_t* cygnal::Listener::_baseaddr [protected] |
Referenced by Listener(), and listListeners().
std::string cygnal::Listener::_name [protected] |
1.7.1