#include <bidirectionalconnectionreceiver.h>
Public Member Functions | |
| BiDirectionalConnectionReceiver () | |
| Constructor. | |
| virtual | ~BiDirectionalConnectionReceiver () |
| Destructor. | |
| void | pushBiDirectionalConnection (BiDirectionalConnection *connection) |
| pushes a BiDirectionalConnection to the connection list | |
| BiDirectionalConnection * | popBiDirectionalConnection () |
| pops the first Connection from the list and returns it | |
| virtual void | receivedConnection () |
| gets called when a Connection was received | |
Protected Member Functions | |
| BiDirectionalConnectionReceiver (const BiDirectionalConnectionReceiver &receiver) | |
Protected Attributes | |
| std::list< BiDirectionalConnection * > | connections_ |
| stores all pushed Connections | |
| Mutex | connections_list_lock_ |
| mutex for locking the connection list | |
|
|
hidden copyconstructor |
|
|
Constructor. nothing happening in there |
|
|
Destructor. note that the stored connections will not be destroyed in the destructor this is done in the destroyAllBiDirectionalConnections method of the used NetDevice implementation ( SockNetDevice for example )
|
|
|
pops the first Connection from the list and returns it This method will pop the first connection in the connection list this class holds internally. this process is threadsafe so it can be used in concurrent scenarios. |
|
|
pushes a BiDirectionalConnection to the connection list This method will push a connection to the end of the connection list this class holds internally. this process is threadsafe so it can be used in concurrent scenarios too, one of them being the listen method of ListeningConnection
|
|
|
gets called when a Connection was received this can be overwritten when a class inherits from the receiver for passing connections around automatically. see MessageReceiver for another example of this mechanims |
1.4.5