diff options
Diffstat (limited to 'Swiften/LinkLocal/DNSSD/Bonjour/BonjourRegisterQuery.h')
| -rw-r--r-- | Swiften/LinkLocal/DNSSD/Bonjour/BonjourRegisterQuery.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Swiften/LinkLocal/DNSSD/Bonjour/BonjourRegisterQuery.h b/Swiften/LinkLocal/DNSSD/Bonjour/BonjourRegisterQuery.h index 9eb8cd9..cc95d64 100644 --- a/Swiften/LinkLocal/DNSSD/Bonjour/BonjourRegisterQuery.h +++ b/Swiften/LinkLocal/DNSSD/Bonjour/BonjourRegisterQuery.h | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | * Copyright (c) 2010-2018 Isode Limited. | 2 | * Copyright (c) 2010-2019 Isode Limited. |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * See the COPYING file for more information. | 4 | * See the COPYING file for more information. |
| 5 | */ | 5 | */ |
| @@ -26,7 +26,7 @@ namespace Swift { | |||
| 26 | recordSize = boost::numeric_cast<unsigned short>(txtRecord.size()); | 26 | recordSize = boost::numeric_cast<unsigned short>(txtRecord.size()); |
| 27 | } | 27 | } |
| 28 | catch (const boost::numeric::bad_numeric_cast&) { | 28 | catch (const boost::numeric::bad_numeric_cast&) { |
| 29 | SWIFT_LOG(warning) << "Bonjour TXT record is too long (" << txtRecord.size() << " bytes), not registring service" << std::endl; | 29 | SWIFT_LOG(warning) << "Bonjour TXT record is too long (" << txtRecord.size() << " bytes), not registring service"; |
| 30 | return; | 30 | return; |
| 31 | } | 31 | } |
| 32 | DNSServiceErrorType result = DNSServiceRegister( | 32 | DNSServiceErrorType result = DNSServiceRegister( |
| @@ -34,7 +34,7 @@ namespace Swift { | |||
| 34 | recordSize, vecptr(txtRecord), | 34 | recordSize, vecptr(txtRecord), |
| 35 | &BonjourRegisterQuery::handleServiceRegisteredStatic, this); | 35 | &BonjourRegisterQuery::handleServiceRegisteredStatic, this); |
| 36 | if (result != kDNSServiceErr_NoError) { | 36 | if (result != kDNSServiceErr_NoError) { |
| 37 | SWIFT_LOG(warning) << "Failed to register Bonjour service" << std::endl; | 37 | SWIFT_LOG(warning) << "Failed to register Bonjour service"; |
| 38 | sdRef = nullptr; | 38 | sdRef = nullptr; |
| 39 | } | 39 | } |
| 40 | } | 40 | } |
| @@ -58,7 +58,7 @@ namespace Swift { | |||
| 58 | DNSServiceUpdateRecord(sdRef, nullptr, 0, boost::numeric_cast<unsigned short>(txtRecord.size()), vecptr(txtRecord), 0); | 58 | DNSServiceUpdateRecord(sdRef, nullptr, 0, boost::numeric_cast<unsigned short>(txtRecord.size()), vecptr(txtRecord), 0); |
| 59 | } | 59 | } |
| 60 | catch (const boost::numeric::bad_numeric_cast&) { | 60 | catch (const boost::numeric::bad_numeric_cast&) { |
| 61 | SWIFT_LOG(warning) << "Bonjour TXT record is too long (" << txtRecord.size() << " bytes), not updating service record" << std::endl; | 61 | SWIFT_LOG(warning) << "Bonjour TXT record is too long (" << txtRecord.size() << " bytes), not updating service record"; |
| 62 | } | 62 | } |
| 63 | } | 63 | } |
| 64 | 64 | ||
Swift