|
| WebSocketsServerBase (Entity *e, const char *part, const PrioritySpec &ts, const char *classname, unsigned char marker) |
| Constructor. More...
|
|
template<typename S > |
bool | _complete_http (S &server) |
| Helper function, templated with the server type.
|
|
virtual | ~WebSocketsServerBase () |
| Destructor. More...
|
|
bool | setTimeSpec (const TimeSpec &ts) |
| Specify a time specification for the simulation activity. More...
|
|
bool | checkTiming (const vector< int > &i) |
| Request check on the timing. More...
|
|
bool | setCurrentData (const std::vector< std::string > &i) |
| Define a URL for reading latest data.
|
|
bool | setFollowData (const std::vector< std::string > &i) |
| Define a URL for following all data in a channel entry.
|
|
bool | setChannelInfo (const std::vector< std::string > &i) |
| Define a URL for tracking changes in a channel.
|
|
bool | setWriterSetup (const std::vector< std::string > &i) |
| Define a URL for writing to a channel.
|
|
bool | setPresetWriterSetup (const std::vector< std::string > &i) |
| Define a URL for writing to a channel.
|
|
bool | setWriteReadSetup (const std::vector< std::string > &i) |
| Two-way communication set-up.
|
|
bool | setCertFiles (const std::vector< std::string > &i) |
| Set SLL certificates; will convert to use SSL.
|
|
bool | addMimeType (const std::vector< std::string > &i) |
| Add a mime type.
|
|
bool | isPrepared () final |
| indicate that everything is ready. More...
|
|
void | startModule (const TimeSpec &time) final |
| start responsiveness to input data. More...
|
|
void | stopModule (const TimeSpec &time) final |
| stop responsiveness to input data. More...
|
|
void | doTransfer (const TimeSpec &ts) |
| the method that implements the main calculation. More...
|
|
unsigned char | getMarker () const |
| sending marker, binary or string
|
|
virtual void | codeData (std::ostream &s, const DCOReader &r) const =0 |
| Send data with, in a "tick"/"data" struct.
|
|
virtual void | codeEmpty (std::ostream &s) const =0 |
| Code empty, no data.
|
|
virtual void | codeEntryInfo (std::ostream &s, const std::string &w_dataname, unsigned w_entryid, const std::string &r_dataname, unsigned r_entryid) const =0 |
| Write type information to given stream.
|
|
virtual | ~Module () |
| Destructor.
|
|
virtual bool | complete () |
| Inform the module that all parameters have now been passed. More...
|
|
virtual bool | isInitialPrepared () |
| To check whether the module is prepared to be prepared. More...
|
|
ObjectType | getObjectType () const |
| The object type within DUECA.
|
|
virtual void | initialStartModule (const TimeSpec &time) |
| Initial start opportunity. More...
|
|
virtual void | finalStopModule (const TimeSpec &time) |
| Final stop command. More...
|
|
const Entity * | getMyEntity () |
| Return a pointer to the entity to which this module belongs. More...
|
|
const ModuleState & | getState () |
| Return the module state. More...
|
|
const std::string | getEntity () const |
| Returns the "entity" part of the name.
|
|
const std::string | getClass () const |
| Returns the "class" part of the name.
|
|
const std::string | getPart () const |
| Returns the sub-entity or "part" part of the name.
|
|
const NameSet & | getNameSet () const |
| This returns the complete name set.
|
|
const GlobalId & | getId () const |
| This returns the id. More...
|
|
|
unsigned char | marker |
| Marker token for the websocket send calls.
|
|
boost::scoped_ptr< WsServer > | server |
| Server, uncoded.
|
|
boost::scoped_ptr< WssServer > | sserver |
| Server, coded.
|
|
boost::scoped_ptr< HttpServer > | http_server |
| Http server, uncoded.
|
|
boost::scoped_ptr< HttpsServer > | https_server |
| Http Server, coded.
|
|
std::string | server_crt |
| Certificate for ssl use, if certificate and key are configured, the ssl version is used. More...
|
|
std::string | server_key |
| Associated key.
|
|
std::shared_ptr< boost::asio::io_context > | runcontext |
| IO context to perform a run.
|
|
unsigned | port |
| Port to be used.
|
|
unsigned | http_port |
| Port for http server.
|
|
std::string | document_root |
| Folder with files for http server.
|
|
std::map< std::string, std::string > | mimemap |
| Mime types map.
|
|
bool | aggressive_reconnect |
| Flag to indicate aggressive reconnection to preset entries.
|
|
bool | immediate_start |
| Immediate start, do not wait on DUECA's commands.
|
|
bool | auto_started |
| Start flag for immediate_start.
|
|
StateGuard | thelock |
| Access lock for shared data.
|
|
PrioritySpec | read_prio |
| Priority for reading.
|
|
TimeSpec | time_spec |
| Timing specification.
|
|
bool | extended |
| If true, use the extended, non-official JSON specification.
|
|
singleread_t | readsingles |
| Mapping connecting URL details to an object that reads a specific channel entry. More...
|
|
singleread_t | autosingles |
| Mapping connecting URL details to an object that reads a specific channel entry. More...
|
|
singlereadmap_t | singlereadsmapped |
| Mapping connection id to SingleEntryRead objects. More...
|
|
followread_t | followers |
| Mapping connecting URL details to an object that reads and follows the data in a specific channel entry. More...
|
|
followread_t | autofollowers |
| Mapping connecting URL details to an object that reads and follows the data in a specific channel entry. More...
|
|
monitormap_t | monitors |
| map from URL to monitors
|
|
writeables_t | writersetup |
| map from URL to writer setup
|
|
presetwrites_t | presetwriters |
| map with preconfigured writeables; these have the channel token created
|
|
writers_t | writers |
| map from connection pointers to the actual writers
|
|
writereadables_t | writereadsetup |
| map from URL to write/read combination setup
|
|
writersreaders_t | writersreaders |
| map with active write/read combinations
|
|
ModuleState | state |
| Flag to remember whether we are stopped due to some error with hardware device manipulation. More...
|
|
Common base type for websocket servers.