Use struct sockaddr in several places; distinguish various places where