Free Electron
Public Member Functions | Private Attributes | List of all members
fe::ext::BSDServer Class Reference

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< SocketHandlerm_spSocketHandler
 
sp< SignalerIm_spSignaler
 
sp< Layout > m_spPollLayout
 
bool m_operating
 
std::list< sp< Layout > > m_layouts
 

Detailed Description

Serves signaling.

see network_design

Member Function Documentation

◆ addLayout()

void fe::ext::BSDServer::addLayout ( sp< Layout >  spLayout)
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.

◆ start()

void fe::ext::BSDServer::start ( sp< SignalerI spSignalerI,
unsigned short  a_port,
sp< Layout >  spPollLayout,
Socket::Transport  transport = Socket::e_tcp,
String  ioPriority = "normal" 
)
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().

◆ stop()

void fe::ext::BSDServer::stop ( void  )
virtual

Stop the server.


The documentation for this class was generated from the following files: