implement ToyVpn in native c++ language