The class representing a PVA Server context.
More...
#include <server/pv/serverContext.h>
Inherited by epics::pvAccess::ServerContextImpl.
The class representing a PVA Server context.
Definition at line 27 of file serverContext.h.
◆ create()
static ServerContext::shared_pointer epics::pvAccess::ServerContext::create |
( |
const Config & |
conf = Config() | ) |
|
|
static |
Start a new PVA server.
By default the server will select ChannelProviders using the EPICS_PVAS_PROVIDER_NAMES Configuration key.
If a list of provided is given with Config::providers() then this overrides any Configuration.
If a specific Configuration is given with Config::config() then this overrides the default Configuration.
- Returns
- shared_ptr<ServerContext> which will automatically shutdown() when the last reference is released.
◆ getBroadcastPort()
Get broadcast port.
- Returns
- broadcast port.
◆ getGUID()
virtual const ServerGUID& epics::pvAccess::ServerContext::getGUID |
( |
| ) |
|
|
pure virtual |
Returns GUID (12-byte array).
- Returns
- GUID.
◆ getServerPort()
Get server port.
- Returns
- server port.
◆ getVersion()
virtual const Version& epics::pvAccess::ServerContext::getVersion |
( |
| ) |
|
|
pure virtual |
Get context implementation version.
- Returns
- version of the context implementation.
◆ printInfo()
virtual void epics::pvAccess::ServerContext::printInfo |
( |
std::ostream & |
str, |
|
|
int |
lvl = 0 |
|
) |
| |
|
pure virtual |
Prints detailed information about the context to the specified output stream.
- Parameters
-
lvl | detail level |
str | stream to which to print the info |
◆ run()
Run server (process events).
- Parameters
-
seconds | time in seconds the server will process events (method will block), if 0 the method would block until destroy() is called. |
- Exceptions
-
BaseException | if server is already destroyed. |
◆ setBeaconServerStatusProvider()
virtual void epics::pvAccess::ServerContext::setBeaconServerStatusProvider |
( |
BeaconServerStatusProvider::shared_pointer const & |
beaconServerStatusProvider | ) |
|
|
pure virtual |
Set beacon server status provider.
- Parameters
-
The documentation for this class was generated from the following file: