Added a simple test of the socket functionality for different platforms.