Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEugene Tarassov2011-11-11 01:19:02 +0000
committerEugene Tarassov2011-11-11 01:19:02 +0000
commita107edc216f94c5ec059fdf74541908bc7e979bb (patch)
treea0d9a448043cf5b969c2ede059b7d19a3aa64b71 /examples
parent07c7a005cded9e4b4ec842d756d0e4d79dade149 (diff)
downloadorg.eclipse.tcf.agent-a107edc216f94c5ec059fdf74541908bc7e979bb.tar.gz
org.eclipse.tcf.agent-a107edc216f94c5ec059fdf74541908bc7e979bb.tar.xz
org.eclipse.tcf.agent-a107edc216f94c5ec059fdf74541908bc7e979bb.zip
Agent code is moved into separate "agent" directory, all C code moved into "tcf" directory.
Diffstat (limited to 'examples')
-rw-r--r--examples/tcf_example.lua11
1 files changed, 11 insertions, 0 deletions
diff --git a/examples/tcf_example.lua b/examples/tcf_example.lua
new file mode 100644
index 00000000..d90cf4d6
--- /dev/null
+++ b/examples/tcf_example.lua
@@ -0,0 +1,11 @@
+function checkpeers ()
+ print("Entered checkpeers")
+ local l = tcf.peer_server_list()
+ for i,peer in pairs(l) do
+ print(i, peer)
+ end
+ print()
+ tcf.post_event(checkpeers, 1000000)
+end
+
+tcf.post_event(checkpeers)

Back to the top