Simple file transfer using blocking sockets and libpthread for workers