Socket redefine