Skip to content

irc::ServerConfig

Clément Hamada edited this page May 20, 2021 · 13 revisions

Currently the ServerConfig handles following entries:

  • NETHOST: IRC-network host
  • NETPASS: IRC-network password
  • NETPORT: IRC-network port

  • HOSTNAME: IRC-server hostname
  • PORT: IRC-server listen port
  • PASS: IRC connection password
  • MOTD: Message of the day

  • SSLPORT: Optional IRC-server secure listen port
  • SSLCERT: SSL certificate filepath in PEM format
  • SSLKEY: SSL private-key filepath in PEM format

  • LOGFILE: Log filepath
  • LOGLEVEL: Minimal log level (DEBUG, INFO, WARNING, ERROR)

Optional arguments have default values.

The constructor can either be called with a filename, an input stream, or command line arguments. If no arguments are specified, the configuration file is loaded from the default path ircserv.conf.

Example hostnames:

  • z3r8p5.42lyon.fr
  • localhost
  • 127.0.0.1
  • 0.0.0.0
  • ::
  • ::1
Clone this wiki locally