Jump to content

chtweek01

Members
  • Content Count

    3
  • Joined

  • Last visited

Community Reputation

0 Neutral

About chtweek01

  • Rank
    Nouveau

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Ce que je ne comprends pas c'est que IPC écoute sur mon port "5555" alors qu'il n'est référencé nul part dans le projet.
  2. Problème réglé en modifiant la façon d'adressage de IPC sur la ligne : Socket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp); Le nouveau problème est celui-ci, impossible de trouver la cause
  3. Bonjour, je cherche depuis 2 jours une solution pour ce problème. J'ai ce message d'erreur, j'ai changé tous les ports du auth, j'ai vérifié qu'il n'y avait pas de conflits entre eux. Si quelqu'un aurait une idée du pourquoi du comment, je ne trouve absolument aucun conflit, je ne sais pas le quel l'application trouve ... Merci à vous d'avance et une très bonne année à tous ! Je laisse ci-dessous mon fichier de configuration Auth.cs : using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Net; using System.Net.Sockets; using System.Reflection; using Stump.Core.Attributes; using Stump.DofusProtocol.Messages; using Stump.DofusProtocol.Types; using Stump.ORM; using Stump.Server.AuthServer.IO; using Stump.Server.AuthServer.IPC; using Stump.Server.AuthServer.Managers; using Stump.Server.AuthServer.Network; using Stump.Server.BaseServer; using Stump.Server.BaseServer.Database; using Stump.Server.BaseServer.Initialization; using Stump.Server.BaseServer.Network; using DatabaseConfiguration = Stump.ORM.DatabaseConfiguration; namespace Stump.Server.AuthServer { public class AuthServer : ServerBase<AuthServer> { [Variable] public static readonly bool HostAutoDefined = true; /// <summary> /// Current server address. Used if HostAutoDefined = false /// </summary> [Variable] public static readonly string Host = "127.0.0.1"; /// <summary> /// Public server address. Used for AntiBotMesure /// </summary> [Variable] public static readonly string CustomHost = "127.0.0.1"; /// <summary> /// Server port /// </summary> [Variable] public static readonly int Port = 25564; [Variable] public static string IpcAddress = "localhost"; [Variable] public static int IpcPort = 25565; [Variable] public static string ConnectionSwfPatch = "./swf_patchs/AuthPatch.swf"; string m_host; [Variable (Priority = 10)] public static DatabaseConfiguration DatabaseConfiguration = new DatabaseConfiguration { ProviderName = "MySql.Data.MySqlClient", Host = "localhost", Port = "3306", DbName = "last_auth", User = "root", Password = "", }; private byte[] m_patchBuffer; public bool m_maintenanceMode; public IPCHost IpcHost { get; private set; } public AuthPacketHandler HandlerManager { get; private set; } public AuthServer () : base (Definitions.ConfigFilePath, Definitions.SchemaFilePath) { } public override void Initialize () { try { base.Initialize (); ConsoleInterface = new AuthConsole (); ConsoleBase.SetTitle ($"#Stump Authentification Server - {Version}"); logger.Info ("Initializing Database..."); DBAccessor = new DatabaseAccessor (DatabaseConfiguration); DBAccessor.RegisterMappingAssembly (Assembly.GetExecutingAssembly ()); InitializationManager.Initialize (InitializationPass.Database); DBAccessor.Initialize (); logger.Info ("Opening Database..."); DBAccessor.OpenConnection (); DataManager.DefaultDatabase = DBAccessor.Database; DataManagerAllocator.Assembly = Assembly.GetExecutingAssembly (); logger.Info ("Register Messages..."); MessageReceiver.Initialize (); ProtocolTypeManager.Initialize (); logger.Info ("Register Packets Handlers..."); HandlerManager = AuthPacketHandler.Instance; HandlerManager.RegisterAll (Assembly.GetExecutingAssembly ()); logger.Info ("Register Commands..."); CommandManager.RegisterAll (Assembly.GetExecutingAssembly ()); logger.Info ("Start World Servers Manager"); WorldServerManager.Instance.Initialize (); logger.Info ("Initialize Account Manager"); AccountManager.Instance.Initialize (); logger.Info ("Initialize IPC Server.."); IpcHost = new IPCHost (IpcAddress, IpcPort); InitializationManager.InitializeAll (); IsInitialized = true; if (Environment.GetCommandLineArgs ().Contains ("-maintenance")) m_maintenanceMode = true; } catch (Exception ex) { HandleCrashException (ex); Shutdown (); } } public override void Start () { base.Start (); logger.Info ("Start Ipc Server"); IpcHost.Start (); logger.Info ("Starting Console Handler Interface..."); ConsoleInterface.Start (); logger.Info ("Start listening on port : " + Port + "..."); m_host = HostAutoDefined ? IPAddress.Loopback.ToString () : Host; ClientManager.Start (m_host, Port); IOTaskPool.Start (); StartTime = DateTime.Now; } public byte[] GetConnectionSwfPatch () { if (m_patchBuffer != null) return m_patchBuffer; if (File.Exists (ConnectionSwfPatch)) return m_patchBuffer = File.ReadAllBytes (ConnectionSwfPatch); logger.Warn ("SWF Patch for connection not found ({0}", ConnectionSwfPatch); return null; } protected override void OnShutdown () { DBAccessor.CloseConnection (); } protected override BaseClient CreateClient (Socket s) { return new AuthClient (s); } public IEnumerable<AuthClient> FindClients (Predicate<AuthClient> predicate) { return ClientManager.FindAll (predicate); } } }
×
×
  • Create New...