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_SendPacket

Send a sequence of bytes to another user. The length must be less than or equal to the allocated length of bytes. A new connection to userID will be established (asynchronously) unless one already exists.

Depending on the policy, this message might be buffered until a valid connection to the peer exists. The function returns false if the packet can't be enqueued for sending (e.g., there's not enough memory) or the policy prohibits buffering. See ovrSendPolicy and ovr_Net_Connect().

This function can be safely called from any thread.

This function returns a bool

Parameters

ParameterDescription

userID

Type: ovrID

length

Type: size_t

bytes

Type: const void *

policy

Type: ovrSendPolicy