Add parent endpoint if given is NULL
init_child_info must have endpoint
Add errno for errors and zero for success
Add default values for ip and name
Remove init