UDP and netcat are no friends

After a long debugging session with an UDP logger I had to find out, that netcat is incapable to receive more than 1024 bytes via UDP at once. Seems this problem is at least known since 2010-02-16 but I wasn’t able to find a solution for this (the trick with sysctl as suggested in the answer to the linked question won’t work with linux). So for now I implemented a solution which divides the UDP output into 1024 byte chunks which seems to work fine.