tfMdnsGetLastNameMatch

Jump to: navigation, search

Table of Contents >> Application Reference >> Multicast_DNS_(mDNS)


#include <trsocket.h>


int tfMdnsGetLastNameMatch (
ttMdnsServerPtr mdPtr,
int type
);


Function Description

Get the local name match results of the last mDNS message received. Useful when a TM_MDNS_V_FAIL event occurs and you need to restart the mDNS server with different host or service names.



Parameters

  • mdPtr
    The mDNS server handle returned by a previous tfMdnsStart() call.
  • type
    The type of name to query. Name group values can be found in trsocket.h with names TM_MDNS_NG_...


Returns

  • M
    A bitmask, M, of the names that matched. The bits are in the order the names were created, bit 0 being the first name.
  • -1
    The mDNS server handle is invalid (no such entry in the global list of mDNS servers).


Table of Contents >> Application Reference >> Multicast_DNS_(mDNS)