a socket mock framework