cancel
Showing results for 
Search instead for 
Did you mean: 

P2P send and read packets example

DEVerdier
Honored Guest
Hi, I'm having problems with the documentation of how to use the ovr_Net_SendPacket and ovr_Net_ReadPacket. Could anyone give me a simple example of how a client could get a string from another client. tnx :smile:


3 REPLIES 3

charles_beyer
Protege
Hi DEVerdier.  Assuming you are looking for something in C/C++, take a look at the NetChat sample that's part of the SDK.

DEVerdier
Honored Guest
Hi DEVerdier.  Assuming you are looking for something in C/C++, take a look at the NetChat sample that's part of the SDK.


Sorry, I should have specified. I'm working with c# in Unity.

charles_beyer
Protege
Great.  There are a couple of Unity samples in the SDK that use P2P networking.  The VrVoiceChat sample uses P2P networking to send head transforms.  The VrHoops sample uses P2P networking to send projectile transforms.  Are they more in line with what you're looking for?