BeardedManStudios.Forge.Networking.CachedSteamP2PClient.DoSend C# (CSharp) Метод

DoSend() приватный Метод

private DoSend ( Array dgram, int bytes, CSteamID steamId, EP2PSend type ) : int
dgram Array
bytes int
steamId CSteamID
type EP2PSend
Результат int
        int DoSend(byte[] dgram, int bytes, CSteamID steamId, EP2PSend type)
        {
            /* Catch EACCES and turn on SO_BROADCAST then,
			 * as UDP Sockets don't have it set by default
			 */
            //if(steamId.IsValid())
            if(SteamNetworking.SendP2PPacket(steamId, dgram, (uint)bytes, type) == false)
            {
                Logging.BMSLog.LogWarningFormat("CachedSteamP2PClient:DoSend() WARNING: Unable to send packet to {0}", steamId.m_SteamID);
            }

            return 0;
        }