Adding a socket delegate class and tests.