Support creatClient() for socket creation