socket mock framework