Very simple ARQ protocol implementation, transfer via socket or serial port