a simple xmodem receiver written in C