{
RegisterAttribute("socket_type", Attribute_Config, &m_SocketType);
RegisterAttribute("socket_path", Attribute_Config, &m_SocketPath);
- RegisterAttribute("address", Attribute_Config, &m_Address);
+ RegisterAttribute("host", Attribute_Config, &m_Host);
RegisterAttribute("port", Attribute_Config, &m_Port);
}
{
if (GetSocketType() == "tcp") {
TcpSocket::Ptr socket = boost::make_shared<TcpSocket>();
- socket->Bind(GetAddress(), GetPort(), AF_INET);
+ socket->Bind(GetHost(), GetPort(), AF_INET);
boost::thread thread(boost::bind(&LivestatusComponent::ServerThreadProc, this, socket));
thread.detach();
return socketPath;
}
-String LivestatusComponent::GetAddress(void) const
+String LivestatusComponent::GetHost(void) const
{
- Value node = m_Address;
+ Value node = m_Host;
if (node.IsEmpty())
return "127.0.0.1";
else
String GetSocketType(void) const;
String GetSocketPath(void) const;
- String GetAddress(void) const;
+ String GetHost(void) const;
String GetPort(void) const;
static int GetClientsConnected(void);
private:
Attribute<String> m_SocketType;
Attribute<String> m_SocketPath;
- Attribute<String> m_Address;
+ Attribute<String> m_Host;
Attribute<String> m_Port;
void ServerThreadProc(const Socket::Ptr& server);
%attribute string "socket_type",
%attribute string "socket_path",
- %attribute string "address",
+ %attribute string "host",
%attribute string "port",
}