Put all socket definitions in util.h to allow reusing by added socket functions to be used in util.c.