Lines Matching refs:typ
984 …const char *nam, const char *typ, const char *dom, const char *host, const char *port, int argc, c… in RegisterService() argument
995 printf("Registering Service %s.%s%s%s", nam[0] ? nam : "<<Default>>", typ, dom[0] ? "." : "", dom); in RegisterService()
1021 …return(DNSServiceRegister(sdref, flags, opinterface, nam, typ, dom, host, registerPort.NotAnIntege… in RegisterService()
1025 static char *gettype(char *buffer, char *typ) in gettype() argument
1027 if (!typ || !*typ || (typ[0] == '.' && typ[1] == 0)) typ = "_http._tcp"; in gettype()
1028 if (!strchr(typ, '.')) { snprintf(buffer, TypeBufferSize, "%s._tcp", typ); typ = buffer; } in gettype()
1029 return(typ); in gettype()
1035 char buffer[TypeBufferSize], *typ, *dom; in main() local
1120 case 'B': typ = (argc < opi+1) ? "" : argv[opi+0]; in main()
1122 typ = gettype(buffer, typ); in main()
1124 printf("Browsing for %s%s%s\n", typ, dom[0] ? "." : "", dom); in main()
1125 err = DNSServiceBrowse(&client, flags, opinterface, typ, dom, browse_reply, NULL); in main()
1128 case 'Z': typ = (argc < opi+1) ? "" : argv[opi+0]; in main()
1130 typ = gettype(buffer, typ); in main()
1132 printf("Browsing for %s%s%s\n", typ, dom[0] ? "." : "", dom); in main()
1135 …err = DNSServiceBrowse(&sc1, kDNSServiceFlagsShareConnection, opinterface, typ, dom, zonedata_brow… in main()
1142 typ = (argc < opi+2) ? "" : argv[opi+1]; in main()
1144 typ = gettype(buffer, typ); in main()
1146 printf("Lookup %s.%s.%s\n", argv[opi+0], typ, dom); in main()
1148 … err = DNSServiceResolve(&client, rflags, opinterface, argv[opi+0], typ, dom, resolve_reply, NULL); in main()
1153 typ = (argc < opi+2) ? "" : argv[opi+1]; in main()
1155 typ = gettype(buffer, typ); in main()
1157 …err = RegisterService(&client, argv[opi+0], typ, dom, NULL, argv[opi+3], argc-(opi+4), argv+(opi+4… in main()