add resolve_host and connect_host

Signed-off-by: Jack <jack.wgm@gmail.com>