Add error checking to getaddrinfo() call.
Cleanup main
Add while(true) listener loop.
Redo preparebuf() with right dates and snprintf().