Index: /trunk/FACT++/src/EventBuilderWrapper.h
===================================================================
--- /trunk/FACT++/src/EventBuilderWrapper.h	(revision 10851)
+++ /trunk/FACT++/src/EventBuilderWrapper.h	(revision 10852)
@@ -97,11 +97,9 @@
         for (vector<string>::const_iterator it=addr.begin(); it!=addr.end(); it++)
         {
-            g_ip[i].port = 5000+i;
-
+            g_ip[i].port = 5000;
             memset(g_ip[i].addr, 0, 100);
             strncpy(g_ip[i].addr, it->c_str(), 99);
 
             strcpy(g_ip[i].addr, "127.0.0.1");
-
             i++;
         }
@@ -147,11 +145,27 @@
     // -------------- Mapped event builder callbacks ------------------
 
-    int runOpen(uint32_t, RUN_HEAD *, size_t)
-    {
+    int runOpen(uint32_t runid, RUN_HEAD *h, size_t)
+    {
+        cout << "OPEN_FILE #" << runid << endl;
+        cout << " Ver= " << h->Version << endl;
+        cout << " Typ= " << h->RunType << endl;
+        cout << " Nb = " << h->NBoard << endl;
+        cout << " Np = " << h->NPix << endl;
+        cout << " NTm= " << h->NTm << endl;
+        cout << " roi= " << h->Nroi << endl;
+
         return 0;
     }
 
-    int runWrite(int, EVENT *, size_t)
-    {
+    int runWrite(int, EVENT *e, size_t)
+    {
+        cout << "WRITE_EVENT" << endl;
+
+        cout << " Evt=" << e->EventNum << endl;
+        cout << " Typ=" << e->TriggerType << endl;
+        cout << " roi=" << e->Roi << endl;
+        cout << " trg=" << e->SoftTrig << endl;
+        cout << " tim=" << e->PCTime << endl;
+
         return 0;
     }
@@ -159,4 +173,5 @@
     int runClose(int, RUN_TAIL *, size_t)
     {
+        cout << "CLOSE_RUN" << endl;
         return 0;
     }
