modify socket interface: host => addr