Moar includes.
Include error message for err (improves portability).
Backoff if send fails, -N for nanoseconds, handy signal handlers, etc.