public static void Start() { Server = new SilverServer("5.135.187.100", 1574); Server.OnListeningEvent += new SilverEvents.Listening(Server_OnListeningEvent); Server.OnAcceptSocketEvent += new SilverEvents.AcceptSocket(Server_OnAcceptSocketEvent); Server.WaitConnection(); }
public static void Initialize() { Server = new SilverServer(Settings.AppSettings.GetStringElement("Inter.Host"), Settings.AppSettings.GetIntElement("Inter.Port")); Server.OnListeningFailedEvent += new SilverEvents.ListeningFailed(ListeningFailed); Server.OnListeningEvent += new SilverEvents.Listening(Listening); Server.OnAcceptSocketEvent += new SilverEvents.AcceptSocket(AcceptSocket); Server.WaitConnection(); }
public static void Start() { Server = new SilverServer(Utilities.Settings.GetSettings.GetStringElement("Game", "Host"), Utilities.Settings.GetSettings.GetIntElement("Game", "Port")); Server.OnListeningFailedEvent += new SilverEvents.ListeningFailed(Server_OnListeningFailedEvent); Server.OnListeningEvent += new SilverEvents.Listening(Server_OnListeningEvent); Server.OnAcceptSocketEvent += new SilverEvents.AcceptSocket(Server_OnAcceptSocketEvent); Server.WaitConnection(); }
public void Start() { if (_server != null) { _server.OnListeningEvent += new SilverEvents.Listening(ServerStarted); _server.OnListeningFailedEvent += new SilverEvents.ListeningFailed(ServerFailed); _server.OnAcceptSocketEvent += new SilverEvents.AcceptSocket(ServerAcceptClient); _server.WaitConnection(); } }
public static void Initialize() { Utilities.ConsoleStyle.Infos("Intializing @RealmServer@ .."); Server = new SilverServer(Utilities.Settings.ConfigurationManager.Server.Realm.Host, Utilities.Settings.ConfigurationManager.Server.Realm.Port); Server.OnListeningEvent += new SilverEvents.Listening(Server_OnListeningEvent); Server.OnAcceptSocketEvent += new SilverEvents.AcceptSocket(Server_OnAcceptSocketEvent); Server.OnListeningFailedEvent += new SilverEvents.ListeningFailed(Server_OnListeningFailedEvent); Server.WaitConnection(); }
/// <summary> /// Start the server on the desired ip and port. /// </summary> public static void Start() { try { server = new SilverServer(ip, port); server.OnAcceptSocketEvent += new SilverEvents.AcceptSocket(ServerOnAcceptSocketEvent); server.OnListeningEvent += new SilverEvents.Listening(ServerOnListeningEvent); server.WaitConnection(); } catch (Exception ex) { Error.Invoke(ex.ToString()); } }
/// <summary> /// Start the server on the desired ip and port. /// </summary> public static void Start() { try { server = new SilverServer(ip, port); server.OnAcceptSocketEvent += new SilverEvents.AcceptSocket(ServerOnAcceptSocketEvent); server.OnListeningEvent += new SilverEvents.Listening(ServerOnListeningEvent); server.WaitConnection(); } catch (Exception exception) { Console.WriteLine(exception); } }
public void Run() { Serv.WaitConnection(); }
public void Start() { server.WaitConnection(); }