a multi-tier TCP/UDP communication implementation written in C