simple network engine, using c++, support tcp and udp