added socket C files
added more codes