Wraps different Socket types for an easy use in service applications.