20#ifndef __FG_MPSERVERRESOLVER_HXX
21#define __FG_MPSERVERRESOLVER_HXX
24#include <simgear/props/props.hxx>
37 void setTarget( SGPropertyNode_ptr value ) { _targetNode = value; }
46 void setDnsName(
const std::string & value ) { _dnsName = value; }
54 void setService(
const std::string & value ) { _service = value; }
62 void setProtocol(
const std::string & value ) { _protocol = value; }
75 class MPServerResolver_priv;
78 std::string _protocol;
79 SGPropertyNode_ptr _targetNode;
80 MPServerResolver_priv * _priv;
void setTarget(SGPropertyNode_ptr value)
Set the target property where the server-list gets stored.
void setService(const std::string &value)
Set the service name to use for the query.
void setDnsName(const std::string &value)
Set the dns domain name to query.
virtual void onSuccess()
Handler to be called if the resolver process finishes with success.
void setProtocol(const std::string &value)
Set the protocol name to use for the query.
virtual ~MPServerResolver()
virtual void onFailure()
Handler to be called if the resolver process terminates with an error.