US President Barak Obama and his Chinese counterpart Xi Jinping have agreed on a set of rules to fight cyber attacks.
They have been meeting in California on Xi's first visit to the United States as president.
Al Jazeera's Rob Reynolds reports from California.