summaryrefslogtreecommitdiffstats
path: root/cloud_print
diff options
context:
space:
mode:
authormaksymb@chromium.org <maksymb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-08-09 00:40:37 +0000
committermaksymb@chromium.org <maksymb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-08-09 00:40:37 +0000
commitd9f17f3d872265153fd776a5b8baf4670aa09968 (patch)
treec8cf155c8b00fb6a153008ff4c340d6bb0ca7a99 /cloud_print
parent1bbbc496bc3a19f17d0ec415f8260dddf151aa78 (diff)
downloadchromium_src-d9f17f3d872265153fd776a5b8baf4670aa09968.zip
chromium_src-d9f17f3d872265153fd776a5b8baf4670aa09968.tar.gz
chromium_src-d9f17f3d872265153fd776a5b8baf4670aa09968.tar.bz2
GCP2.0 Device: Default responses is now multicast responses (instead of unicast).
BUG= Review URL: https://chromiumcodereview.appspot.com/22584003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@216513 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cloud_print')
-rw-r--r--cloud_print/gcp20/prototype/dns_sd_server.cc8
-rw-r--r--cloud_print/gcp20/prototype/gcp20_device.cc4
2 files changed, 6 insertions, 6 deletions
diff --git a/cloud_print/gcp20/prototype/dns_sd_server.cc b/cloud_print/gcp20/prototype/dns_sd_server.cc
index 8a6653f..4ef9bb3 100644
--- a/cloud_print/gcp20/prototype/dns_sd_server.cc
+++ b/cloud_print/gcp20/prototype/dns_sd_server.cc
@@ -183,13 +183,13 @@ void DnsSdServer::ProcessMessage(int len, net::IOBufferWithSize* buf) {
VLOG(1) << "Current TTL for respond: " << current_ttl;
- bool multicast_respond =
- CommandLine::ForCurrentProcess()->HasSwitch("multicast-respond");
+ bool unicast_respond =
+ CommandLine::ForCurrentProcess()->HasSwitch("unicast-respond");
socket_->SendTo(buffer.get(), buffer.get()->size(),
- multicast_respond ? multicast_address_ : recv_address_,
+ unicast_respond ? recv_address_ : multicast_address_,
base::Bind(&DoNothingAfterSendToSocket));
VLOG(1) << "Responded to "
- << (multicast_respond ? multicast_address_ : recv_address_).ToString();
+ << (unicast_respond ? recv_address_ : multicast_address_).ToString();
}
void DnsSdServer::ProccessQuery(uint32 current_ttl, const DnsQueryRecord& query,
diff --git a/cloud_print/gcp20/prototype/gcp20_device.cc b/cloud_print/gcp20/prototype/gcp20_device.cc
index 9e67ca7..2d2c1d5 100644
--- a/cloud_print/gcp20/prototype/gcp20_device.cc
+++ b/cloud_print/gcp20/prototype/gcp20_device.cc
@@ -26,8 +26,8 @@ const char kHelpMessage[] =
"HTTP header\n"
" -h, --help prints this message\n"
" --no-announcement disables DNS announcements\n"
- " --multicast-respond DNS responses will be sent in multicast "
- "instead of unicast\n"
+ " --unicast-respond DNS responses will be sent in unicast "
+ "instead of multicast\n"
"\n"
"options:\n"
" --domain-name=<name> sets, should ends with '.local'\n"