Implemented further socket functions