a simple TCP proxy written in C