Add a test.c for test socket programming.