Exemplo n.º 1
0
        public void FinishedStartup()
        {
            if (m_Enabled)
            {
                //Set up the public connection
                MainServer.Instance.AddStreamHandler(new IWCIncomingConnections(this));

                //Startup outgoing
                OutgoingPublicComms = new IWCOutgoingConnections(this);

                //Make our connection strings.
                Connections = BuildConnections();

                try
                {
                    ContactOtherServers();
                }
                catch
                {
                }

                AddConsoleCommands();
            }
        }
Exemplo n.º 2
0
        public void FinishedStartup()
        {
            if (m_Enabled)
            {
                //Set up the public connection
                MainServer.Instance.AddStreamHandler(new IWCIncomingConnections(this));

                //Startup outgoing
                OutgoingPublicComms = new IWCOutgoingConnections(this);

                //Make our connection strings.
                //Connections = BuildConnections();

                try
                {
                    ContactOtherServers();
                }
                catch
                {
                }

                AddConsoleCommands();
            }
        }
        public void PostStart(IConfigSource source, IRegistryCore registry)
        {
            if (m_Enabled)
            {
                registry.RegisterModuleInterface<InterWorldCommunications>(this);
                //Set up the public connection
                MainServer.Instance.AddStreamHandler(new IWCIncomingConnections(this));

                //Startup outgoing
                OutgoingPublicComms = new IWCOutgoingConnections(this);

                //Make our connection strings.
                Connections = BuildConnections();

                ContactOtherServers();

                AddConsoleCommands();
            }
        }