void DemoComponent::Start(void)
{
m_DemoEndpoint = make_shared<VirtualEndpoint>();
- m_DemoEndpoint->RegisterMethodHandler("demo::HelloWorld", bind_weak(&DemoComponent::HelloWorldRequestHAndler, shared_from_this()));
+ m_DemoEndpoint->RegisterMethodHandler("demo::HelloWorld",
+ bind_weak(&DemoComponent::HelloWorldRequestHAndler, shared_from_this()));
m_DemoEndpoint->RegisterMethodSource("demo::HelloWorld");
EndpointManager::Ptr endpointManager = GetIcingaApplication()->GetEndpointManager();
int DemoComponent::NewEndpointHandler(const NewEndpointEventArgs& neea)
{
+ /* Allow sending/receiving demo messages without authentication */
neea.Endpoint->AddAllowedMethodSinkPrefix("demo::");
neea.Endpoint->AddAllowedMethodSourcePrefix("demo::");
"rpclistener": {
"kekslistener": { "replicate": "0", "port": "7777" }
},
- "rpcconnection": {
- "keksclient": { "replicate": "0", "hostname": "localhost", "port": "7777" }
- },
"host": {
"localhost": { "ipaddr": "127.0.0.1" }
}