Partial work on making UDP protocol actually work (flush_all working!)