Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'agent/tcf/services/discovery.h')
-rw-r--r--agent/tcf/services/discovery.h50
1 files changed, 50 insertions, 0 deletions
diff --git a/agent/tcf/services/discovery.h b/agent/tcf/services/discovery.h
new file mode 100644
index 00000000..9788d1dd
--- /dev/null
+++ b/agent/tcf/services/discovery.h
@@ -0,0 +1,50 @@
+/*******************************************************************************
+ * Copyright (c) 2007, 2010 Wind River Systems, Inc. and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * and Eclipse Distribution License v1.0 which accompany this distribution.
+ * The Eclipse Public License is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ * and the Eclipse Distribution License is available at
+ * http://www.eclipse.org/org/documents/edl-v10.php.
+ * You may elect to redistribute this code under either of these licenses.
+ *
+ * Contributors:
+ * Wind River Systems - initial API and implementation
+ *******************************************************************************/
+
+/*
+ * Discovery interface
+ */
+
+#ifndef D_discovery
+#define D_discovery
+
+#include <config.h>
+#include <framework/protocol.h>
+#include <framework/channel.h>
+#include <framework/link.h>
+
+#define DISCOVERY_TCF_PORT 1534
+
+/*
+ * Start discovery of remote peers. If no other discovery master exist on the
+ * local machine, then this instance will become master, otherwise a
+ * agent will attempt to connect to the existing master. If the
+ * existing master disappears, then a new attempt will be made to
+ * become master or connect as a client.
+ */
+extern void discovery_start(void);
+
+/*
+ * Stop discovery of remote peers.
+ */
+extern void discovery_stop(void);
+
+#if SERVICE_Locator
+
+extern void ini_locator_service(Protocol * p, TCFBroadcastGroup * bcg);
+
+#endif /* SERVICE_Locator */
+
+#endif /* D_discovery */

Back to the top