/// <summary> /// Initializes a new instance of the <see cref="LoginListener"/> class. /// </summary> /// <param name="handlerFactory">The handler factory that this listener will use.</param> /// <param name="port">The port where this listener will listen.</param> public LoginListener(IHandlerFactory handlerFactory, int port = DefaultLoginListenerPort) : base(port, ProtocolFactory.CreateForType(OpenTibiaProtocolType.LoginProtocol, handlerFactory)) { }
/// <summary> /// Initializes a new instance of the <see cref="ManagementListener"/> class. /// </summary> /// <param name="handlerFactory">The handler factory that this listener will use.</param> /// <param name="port">The port where this listener will listen.</param> public ManagementListener(IHandlerFactory handlerFactory, int port = DefaultManagementListenerPort) : base(port, ProtocolFactory.CreateForType(OpenTibiaProtocolType.ManagementProtocol, handlerFactory)) { }