예제 #1
0
 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();
 }
예제 #2
0
 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();
 }
예제 #3
0
 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();
 }
예제 #4
0
 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();
 }
예제 #5
0
 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();
     }
 }
예제 #6
0
        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();
        }
예제 #7
0
 /// <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());
     }
 }
예제 #8
0
 /// <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);
     }
 }
예제 #9
0
 public void Run()
 {
     Serv.WaitConnection();
 }
예제 #10
0
 public void Start()
 {
     server.WaitConnection();
 }