generated from ClemaX/ft_skeleton_cpp
-
Notifications
You must be signed in to change notification settings - Fork 0
irc::ServerConfig
Clément Hamada edited this page May 7, 2021
·
13 revisions
Currently the ServerConfig
handles following entries:
-
NETHOST
: IRC-network host -
NETPASS
: IRC-network password -
NETPORT
: IRC-network port
-
PORT
: IRC-server listen port -
PASS
: IRC connection password -
MOTD
: Message of the day
-
HOSTNAME
: IRC-server hostname
All values default to an empty string, except HOSTNAME
which defaults to ::
.
Example hostnames:
localhost
127.0.0.1
0.0.0.0
::
::1
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
.