move some api from tcp_proxy to network

Signed-off-by: Fuang.Cao <cavan.cfa@gmail.com>