Add socket abstraction.