Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(14)

Unified Diff: cloud_print/gcp20/prototype/printer.cc

Issue 131103028: Added --extended-response to put additional information into PTR responces. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cloud_print/gcp20/prototype/gcp20_device.cc ('k') | cloud_print/gcp20/prototype/service_parameters.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cloud_print/gcp20/prototype/printer.cc
diff --git a/cloud_print/gcp20/prototype/printer.cc b/cloud_print/gcp20/prototype/printer.cc
index 47651982f3d5aa97630431615b0e7f161eea7d69..fdbdf8705e856a30eb1a663a20cd27902ee288ea 100644
--- a/cloud_print/gcp20/prototype/printer.cc
+++ b/cloud_print/gcp20/prototype/printer.cc
@@ -38,7 +38,7 @@ const uint32 kTtlDefault = 60*60; // in seconds
const char kServiceType[] = "_privet._tcp.local";
const char kSecondaryServiceType[] = "_printer._sub._privet._tcp.local";
-const char kServiceNamePrefixDefault[] = "first_gcp20_device";
+const char kServiceNamePrefixDefault[] = "gcp20_device_";
const char kServiceDomainNameFormatDefault[] = "my-privet-device%d.local";
const char kPrinterName[] = "Google GCP2.0 Prototype";
@@ -843,8 +843,8 @@ bool Printer::StartDnsServer() {
uint16 port = command_line_reader::ReadHttpPort(kHttpPortDefault);
std::string service_name_prefix =
- command_line_reader::ReadServiceNamePrefix(net::IPAddressToString(ip) +
- kServiceNamePrefixDefault);
+ command_line_reader::ReadServiceNamePrefix(kServiceNamePrefixDefault +
+ net::IPAddressToString(ip));
std::replace(service_name_prefix .begin(), service_name_prefix .end(),
'.', '_');
@@ -854,8 +854,8 @@ bool Printer::StartDnsServer() {
base::RandInt(0, INT_MAX)));
ServiceParameters params(kServiceType, kSecondaryServiceType,
- service_name_prefix,
- service_domain_name, ip, port);
+ service_name_prefix, service_domain_name,
+ ip, GetLocalIp("", true), port);
return dns_server_.Start(params,
command_line_reader::ReadTtl(kTtlDefault),
« no previous file with comments | « cloud_print/gcp20/prototype/gcp20_device.cc ('k') | cloud_print/gcp20/prototype/service_parameters.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698