This website uses cookies to improve our services and deliver relevant ads.
By interacting with this site, you agree to this use. For more information, see our Cookies Policy

ovr_Net_ReadPacket

Read the next incoming packet. Returns null when no more packets are available. Returned handle points to an object representing data read from the network. Ownership of that object is transferred to the application; use ovr_Packet_Free() to release memory.

For example:

        ovrPacketHandle packet;
        while (packet = ovr_Net_ReadPacket()) {
          ovrID sender = ovr_Packet_GetSender(packet);
          // dispatch packet
          ovr_Packet_Free(packet);
        }
      

This function can be safely called from any thread.

This function returns a ovrPacketHandle