Skip to content

Class mDNS

ClassList > mDNS

Public Functions

Type Name
IPAddress IP (int idx)
IPv6Address IPv6 (int idx)
bool addService (char * service, char * proto, uint16_t port)
bool addService (const char * service, const char * proto, uint16_t port)
bool addService (String service, String proto, uint16_t port)
bool addServiceTxt (char * service, char * proto, char * key, char * value)
void addServiceTxt (const char * service, const char * proto, const char * key, const char * value)
void addServiceTxt (String service, String proto, String key, String value)
bool begin (const char * hostname)
void end ()
bool hasTxt (int idx, const char * key)
String hostname (int idx)
mDNS ()
int numTxt (int idx)
uint16_t port (int idx)
IPAddress queryHost (char * host, uint32_t timeout=2000)
IPAddress queryHost (const char * host, uint32_t timeout=2000)
IPAddress queryHost (String host, uint32_t timeout=2000)
int queryService (char * service, char * proto)
int queryService (const char * service, const char * proto)
int queryService (String service, String proto)
void setInstanceName (const char * name)
void setInstanceName (String name)
void setInstanceName (char * name)
String txt (int idx, const char * key)
String txt (int idx, int txtIdx)
String txtKey (int idx, int txtIdx)
~mDNS ()

Public Functions Documentation

function IP

IPAddress mDNS::IP (
    int idx
) 

function IPv6

IPv6Address mDNS::IPv6 (
    int idx
) 

function addService [1/3]

bool mDNS::addService (
    char * service,
    char * proto,
    uint16_t port
) 

function addService [2/3]

inline bool mDNS::addService (
    const char * service,
    const char * proto,
    uint16_t port
) 

function addService [3/3]

inline bool mDNS::addService (
    String service,
    String proto,
    uint16_t port
) 

function addServiceTxt [1/3]

bool mDNS::addServiceTxt (
    char * service,
    char * proto,
    char * key,
    char * value
) 

function addServiceTxt [2/3]

inline void mDNS::addServiceTxt (
    const char * service,
    const char * proto,
    const char * key,
    const char * value
) 

function addServiceTxt [3/3]

inline void mDNS::addServiceTxt (
    String service,
    String proto,
    String key,
    String value
) 

function begin

bool mDNS::begin (
    const char * hostname
) 

function end

void mDNS::end () 

function hasTxt

bool mDNS::hasTxt (
    int idx,
    const char * key
) 

function hostname

String mDNS::hostname (
    int idx
) 

function mDNS

mDNS::mDNS () 

function numTxt

int mDNS::numTxt (
    int idx
) 

function port

uint16_t mDNS::port (
    int idx
) 

function queryHost [1/3]

IPAddress mDNS::queryHost (
    char * host,
    uint32_t timeout=2000
) 

function queryHost [2/3]

inline IPAddress mDNS::queryHost (
    const char * host,
    uint32_t timeout=2000
) 

function queryHost [3/3]

inline IPAddress mDNS::queryHost (
    String host,
    uint32_t timeout=2000
) 

function queryService [1/3]

int mDNS::queryService (
    char * service,
    char * proto
) 

function queryService [2/3]

inline int mDNS::queryService (
    const char * service,
    const char * proto
) 

function queryService [3/3]

inline int mDNS::queryService (
    String service,
    String proto
) 

function setInstanceName [1/3]

void mDNS::setInstanceName (
    const char * name
) 

function setInstanceName [2/3]

inline void mDNS::setInstanceName (
    String name
) 

function setInstanceName [3/3]

inline void mDNS::setInstanceName (
    char * name
) 

function txt [1/2]

String mDNS::txt (
    int idx,
    const char * key
) 

function txt [2/2]

String mDNS::txt (
    int idx,
    int txtIdx
) 

function txtKey

String mDNS::txtKey (
    int idx,
    int txtIdx
) 

function ~mDNS

mDNS::~mDNS () 

The documentation for this class was generated from the following file cores/common/arduino/libraries/common/mDNS/mDNS.h