Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add bittorrent example in Lua
[simgrid.git] / examples / lua / bittorrent / bittorrent.xml
diff --git a/examples/lua/bittorrent/bittorrent.xml b/examples/lua/bittorrent/bittorrent.xml
new file mode 100644 (file)
index 0000000..58627ee
--- /dev/null
@@ -0,0 +1,40 @@
+<?xml version='1.0'?>
+<!DOCTYPE platform SYSTEM "http://simgrid.gforge.inria.fr/simgrid.dtd">
+<platform version="3">
+
+  <process host="Jacquelin" function="tracker">
+    <argument value="3000" />                  
+  </process>
+
+  <process host="Boivin" function="peer">
+    <argument value="00000002"/>        <!-- my id -->
+    <argument value="5000" />                  <!-- end time -->       
+    <argument value="1" />                     <!-- indicates if the peer is a seed at the begining of the simulation -->      
+  </process>
+  <process host="Jean_Yves" function="peer">
+    <argument value="00000003"/>        <!-- my id -->
+    <argument value="5000" />                  <!-- end time -->       
+  </process>
+  <process host="TeX" function="peer">
+    <argument value="00000004"/>        <!-- my id -->
+    <argument value="5000" />                  <!-- end time -->       
+  </process>
+  <process host="Geoff" function="peer">
+    <argument value="00000005"/>        <!-- my id -->
+    <argument value="5000" />                  <!-- end time -->       
+    <argument value="1" />                     <!-- indicates if the peer is a seed at the begining of the simulation -->      
+  </process>
+  <process host="Disney" function="peer">
+    <argument value="00000006"/>        <!-- my id -->
+    <argument value="5000" />                  <!-- end time -->       
+  </process>
+  <process host="iRMX" function="peer">
+    <argument value="00000007"/>        <!-- my id -->
+    <argument value="5000" />                  <!-- end time -->       
+  </process>
+  <process host="McGee" function="peer">
+    <argument value="00000008"/>        <!-- my id -->
+    <argument value="5000" />                  <!-- end time -->       
+  </process>
+
+</platform>