41 lines
1.5 KiB
C
41 lines
1.5 KiB
C
/*
|
|
Copyright (C) 2019-2020 Toldi Balázs Ádám
|
|
|
|
This program is free software: you can redistribute it and/or modify
|
|
it under the terms of the GNU General Public License as published by
|
|
the Free Software Foundation, either version 3 of the License, or
|
|
(at your option) any later version.
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
GNU General Public License for more details.
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
|
|
File created at: 2019. 10. 16.
|
|
*/
|
|
|
|
#pragma once
|
|
#define _CRT_SECURE_NO_WARNINGS
|
|
#include "../utility.h"
|
|
#include "../lib/map.h"
|
|
#include "../lib/debugmalloc/debugmalloc.h"
|
|
//! Az alapértelmezett hallgató portszám
|
|
#ifdef RANDOM_PORT
|
|
#define DEFAULT_PORT "0"
|
|
#else
|
|
#define DEFAULT_PORT "6327"
|
|
#endif
|
|
//! Az alapértelmezett hallgató portszám a felhasználói felület számára
|
|
#define DEFAULT_INTERFACE_PORT "5081"
|
|
//! Az alapértelmezett mappa, ami felhasználói felület számára szükséges fájlokat tárolja
|
|
#define DEFAULT_WWW_FOLDER "htdocs/"
|
|
//! A program jelenlegi verziószáma
|
|
#define P2P_CURRENT_VERSION "1.2"
|
|
/*!
|
|
* @brief Betölti a `config.ini` fájlt és létrehoz egy Map struktúrát abból.
|
|
* @return A betöltött file Map struktúrája
|
|
*/
|
|
Config config_load();
|