6#define SQ_API __declspec(dllexport)
8#define SQ_API __declspec(dllimport)
17 namespace RapidSequencer
58 struct ServerInfoImpl;
59 ServerInfoImpl* implPtr;
94 struct ServerInfoCollectionImpl;
95 ServerInfoCollectionImpl* implPtr;
152 SQ_API
ServerInfo Start(
Platform _platform,
const char*
const _nodeName,
const char*
const rmp_node,
const char*
const executable_path,
153 const int32_t grpc_port = 50051,
const char*
const friendly_name =
"RapidServer",
const uint64_t timeout_ms = 1000,
const int32_t broadcast_port = 60061);
A container for ServerInfo objects.
void ServerInfoAdd(const ServerInfo &)
Add a ServerInfo object to this collection.
const ServerInfo & ServerInfoGet(uint32_t index) const
Get the ServerInfo object at the specified index.
size_t ServerCount() const
Get the number of ServerInfo objects in this collection.
An object containing the IP Address, the port, and the Id of a RapidServer instance.
void PortSet(const int32_t)
Sets the port number of this object.
const char *const NameGet() const
Returns the friendly name a RapidServer.
void AddressSet(const char *const)
Sets the IP Address of this object using the IPV4 format: "###.###.###.###".
uint64_t IdGet() const
Returns the unique identifier of a RapidServer.
void NameSet(const char *const)
Set the name of this object.
const char *const AddressGet() const
Returns the IP Address of a RapidServer using the IPV4 format: "###.###.###.###".
int32_t PortGet() const
Returns the port number of a RapidServer.
void IdSet(const uint64_t)
Set the unique identifier of this object.
Platform
Enum for which platform / operating system to run RapidServer on.
DiscoveryType
Enum for which platform / operating system to discover RapidServer instances on.
ServerInfoCollection DiscoverSpecific(DiscoveryType discovery_type, const ServerInfoCollection &expected_servers, const char *const node_name="NodeB", const uint64_t timeout_ms=2500, const int32_t broadcast_port=60061)
Discover the active RapidServer processes and return a collection of ServerInfo objects.
ServerInfoCollection DiscoverBroadcast(DiscoveryType discovery_type, uint16_t expected_servers=0, const char *const node_name="NodeB", const uint64_t timeout_ms=2500, const int32_t broadcast_port=60061)
Discover the active RapidServer processes and return a collection of ServerInfo objects.
ServerInfo Start(Platform _platform, const char *const _nodeName, const char *const rmp_node, const char *const executable_path, const int32_t grpc_port=50051, const char *const friendly_name="RapidServer", const uint64_t timeout_ms=1000, const int32_t broadcast_port=60061)
Starts a RapidServer instance and confirms that the server process is started.
void KillAll()
Kills all RapidServer processes.