Refactoring network information parsing for new API

Reworked wait_for_event to accommodate returned array, and machine network calling convention