Free Electron
|
Serves signaling. More...
#include <Server.h>
Inherits fe::ext::ServerI.
Public Member Functions | |
virtual void | addLayout (sp< Layout > spLayout) |
Add a layout. More... | |
virtual void | start (sp< SignalerI > spSignalerI, unsigned short a_port, sp< Layout > spPollLayout, Socket::Transport transport=Socket::e_tcp, String ioPriority="normal") |
Start the server. More... | |
virtual void | stop (void) |
Stop the server. More... | |
Private Attributes | |
sp< SocketHandler > | m_spSocketHandler |
sp< SignalerI > | m_spSignaler |
sp< Layout > | m_spPollLayout |
bool | m_operating |
std::list< sp< Layout > > | m_layouts |
Serves signaling.
see network_design
|
virtual |
Add a layout.
Only signals of layouts that are added will be sent to the Clients. All addLayout calls must be made before start() is called.
|
virtual |
Start the server.
server_addr is to specify the listening port. spPollLayout specifies the layout upon which listen polling checks and dead connection cleanup will happen. Note that signal transmission is not associated with this polling, but happens automatically in a child thread.
References fe::ext::SockAddr::setPort().
|
virtual |
Stop the server.