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

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

Issue 16389002: GCP2.0 Device: mDNS basics (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Corrected "Binds". Created 7 years, 6 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
Index: cloud_print/gcp20/prototype/gcp20_device.cc
diff --git a/cloud_print/gcp20/prototype/gcp20_device.cc b/cloud_print/gcp20/prototype/gcp20_device.cc
new file mode 100644
index 0000000000000000000000000000000000000000..2d6b586279db4dcb005b23fb34d8cfca3e0f575e
--- /dev/null
+++ b/cloud_print/gcp20/prototype/gcp20_device.cc
@@ -0,0 +1,28 @@
+// Copyright 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include <stdio.h>
+
+#include "base/command_line.h"
+#include "base/logging.h"
+#include "base/threading/platform_thread.h"
+#include "cloud_print/gcp20/prototype/dns_sd.h"
+
+int main(int argc, char* argv[]) {
+ CommandLine::Init(argc, argv);
+
+ logging::InitLogging(NULL,
+ logging::LOG_ONLY_TO_SYSTEM_DEBUG_LOG,
+ logging::LOCK_LOG_FILE,
+ logging::APPEND_TO_OLD_LOG_FILE,
+ logging::DISABLE_DCHECK_FOR_NON_OFFICIAL_RELEASE_BUILDS);
+
+ DnsSd dns_sd_server;
+ dns_sd_server.Start();
+ base::PlatformThread::Sleep(base::TimeDelta::FromSeconds(2));
+ dns_sd_server.Shutdown();
+
+ return 0;
+}
+

Powered by Google App Engine
This is Rietveld 408576698