-const char trbnet_version[] = "$Revision: 4.25 $ Local";
+const char trbnet_version[] = "$Revision: 4.26 $ Local";
#include <stdlib.h>
#include <signal.h>
#include <netinet/in.h>
#include <netdb.h>
-static uint16_t udpBuffer[750]; /* Maxminum is payload of one Ethernet-Frame */
+static uint16_t udpBuffer[32768]; /* One UDP Package */
static uint16_t dataBuffer[4096 * 1024];
static unsigned int dataBufferSize = 0; /* Size of dataBuffer in 16BIt words */
static int trb3_sockfd = -1;
int i;
/* GetData */
- status = recv(trb3_sockfd_in, (void*)dataBuffer, 1500, 0);
+ fprintf(stderr, "Wait UDP Data\n");
+ status = recv(trb3_sockfd_in, (void*)dataBuffer, 65536, 0);
if (status == -1) {
trb_errno = errno == EAGAIN
? TRB_TRB3_SOCKET_TIMEOUT
return -1;
}
dataBufferSize = status / 2;
+ fprintf(stderr, "udp received: %d\n", status);
/* Adjust endianess ... */
if (trb_debug > 2) {