Adding old socket functions
updates