-static char rcsId[] = "$Header: /misc/hadesprojects/daq/cvsroot/eventbuilder/hadaq/nettrans.c,v 6.17 2000-11-10 18:00:34 hades Exp $";
+static char rcsId[] = "$Header: /misc/hadesprojects/daq/cvsroot/eventbuilder/hadaq/nettrans.c,v 6.18 2000-11-10 21:25:54 hades Exp $";
#define _GNU_SOURCE
#include <unistd.h>
#include "worker.h"
#include "nettrans.h"
+#define EOPSTRING "Der CES ATM Treiber ist Muell"
+
static int min(int a, int b)
{
return a < b ? a : b;
}
/* mark the end of message */
+#if 0
my->pkt = hadTu;
+#else
+ my->pkt = EOPSTRING;
+#endif
my->pktSize = 24;
if (0 > sendGeneric(my)) {
abort();
}
+#if 0
if (my->pktSize != 24) {
+#else
+ if (memcmp(my->pkt, EOPSTRING, 24) != 0) {
+#endif
my->offset += my->pktSize;
(*my->pktsReceived)++;
retVal = 0;