From 50dedfdbabb8e76ee85719abe3096b494e745e8f Mon Sep 17 00:00:00 2001 From: Joseph Henry Date: Fri, 17 Jun 2016 16:15:19 -0700 Subject: [PATCH] Added error note for RX --- integrations/Unity3D/Assets/ZeroTier.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/integrations/Unity3D/Assets/ZeroTier.cs b/integrations/Unity3D/Assets/ZeroTier.cs index db1c95b..2f825ae 100644 --- a/integrations/Unity3D/Assets/ZeroTier.cs +++ b/integrations/Unity3D/Assets/ZeroTier.cs @@ -299,6 +299,13 @@ public class ZeroTierNetworkInterface { */ public NetworkEventType Receive(out int hostId, out int connectionId, out int channelId, byte[] buffer, int bufferSize, out int receivedSize, out byte error) { + /* + * If recBuffer is big enough to contain data, data will be copied in the buffer. + * If not, error will contain MessageToLong error and you will need reallocate + * buffer and call this function again. */ + + + for (int i = 0; i < connections.Count; i++) { }