DarkEmu_GameServer.Systems.UpdateServerInfo C# (CSharp) Метод

UpdateServerInfo() публичный статический Метод

public static UpdateServerInfo ( byte bStatus ) : void
bStatus byte
Результат void
        public static void UpdateServerInfo(byte bStatus)
        {
            foreach (KeyValuePair<int, Systems.SRX_Serverinfo> LS in Systems.LSList)
            {
                try
                {
                    byte[] tBuf = Systems.IPC.PacketResponseServerInfo(Servers.IPCPort, bStatus, (UInt16)Systems.maxSlots, (UInt16)Systems.clients.Count, (UInt16)DarkEmu_GameServer.Global.Versions.clientVersion);
                    Servers.IPCenCode(ref tBuf, LS.Value.code);
                    Systems.IPC.Send(LS.Value.ip, LS.Value.ipcport, tBuf);
                }
                catch (Exception ex)
                {
                    Console.WriteLine("[IPC] Error informing LoginServer {0}:{1}> {2}", LS.Value.ip, LS.Value.ipcport, ex);
                }
            }
        }

Same methods

Systems::UpdateServerInfo ( ) : void

Usage Example

Пример #1
0
 public static void updateServerList(object List, EventArgs a)
 {
     Systems.UpdateServerInfo();
 }
Systems