def registerAirTunes(targetPort):
	params = {
		"txtvers": "1",
		"am": config.model,
		"ch": "2",
		"cn": "0,1,2,3",
		"da": "true",
		"et": "0,1,3",
		"md": "0,1,2",
		"pw": "false" if config.password is None else "true",
		"rhd": config.rhd,
		"rmodel": config.rmodel,
		"sf": "0x4",
		"sr": "44100",
		"ss": "16",
		"sv": "false",
		"tp": "UDP",
		"vn": "65537",
		"vs": config.server_version,
		"vv": "1"
	}

	sdRef = pybonjour.DNSServiceRegister(
			name = "%s@%s" % ("".join(getHWAddress()), config.service_name),
			regtype = "_raop._tcp",
			port = targetPort,
			txtRecord = buildTxtRecord(params))
	atexit.register(sdRef.close)
dataset/ETHPy150Open tzwenn/PyOpenAirMirror/common/register.py/registerAirTunes/original