Mock Socket Framework