Added CSocket class