add type struct into data structure, add sock_fill_address function