Exemple #1
0
        /// <summary>
        /// Broadcast the outgoing buffer to the entire LAN via UDP.
        /// </summary>

        public void EndSend(int port)
        {
            mBuffer.EndPacket();
#if !UNITY_WEBPLAYER
            mUdp.Broadcast(mBuffer, port);
#endif
            mBuffer = null;
        }
Exemple #2
0
        /// <summary>
        /// Broadcast the outgoing buffer to the entire LAN via UDP.
        /// </summary>

        public void EndSend(int port)
        {
            mBuffer.EndPacket();
#if !UNITY_WEBPLAYER
            if (mCanSend)
            {
                mUdp.Broadcast(mBuffer, port);
            }
#endif
            mBuffer.Recycle();
            mBuffer = null;
        }