feature: add getAddr function to SockAddr
demo: add test of getAddr