Exchange bytes sent with server.
Apparently we need sys/types.h on FreeBSD 9.0 (but not 9.1).