Extracted simplesocket and test program to be used with other c programs