private static void Socket_ReceivedDataEvent(object sender, SNet3.Core.SocketEventArgs e) { try { var banks = Banks.Instance; var bank = banks.SelectBank(e.Ip); if (bank != null && banks.Bank.Ip == e.Ip) { bank.ReceivedData = e.Data; bank.SetData(e.Data); } } catch (Exception ex) { Console.WriteLine(ex.Message); } }
private static void Socket_ConnectedClientEvent(object sender, SNet3.Core.SocketEventArgs e) { var bank = Banks.Instance; bank.Add(e.Ip); }