basic wrpper for network programming (c++ implement)