2003-01-23 19:45:57 +00:00
|
|
|
/* +------------------------------------+
|
|
|
|
* | Inspire Internet Relay Chat Daemon |
|
|
|
|
* +------------------------------------+
|
|
|
|
*
|
|
|
|
* Inspire is copyright (C) 2002-2003 ChatSpike-Dev.
|
|
|
|
* E-mail:
|
|
|
|
* <brain@chatspike.net>
|
|
|
|
* <Craig@chatspike.net>
|
|
|
|
*
|
|
|
|
* Written by Craig Edwards, Craig McLure, and others.
|
|
|
|
* This program is free but copyrighted software; see
|
|
|
|
* the file COPYING for details.
|
|
|
|
*
|
|
|
|
* ---------------------------------------------------
|
|
|
|
*/
|
|
|
|
|
2004-04-07 13:22:17 +00:00
|
|
|
#include <sstream>
|
|
|
|
|
2003-01-23 19:45:57 +00:00
|
|
|
void Exit (int);
|
|
|
|
void Start (void);
|
|
|
|
int DaemonSeed (void);
|
2004-04-07 17:26:30 +00:00
|
|
|
bool FileExists (const char* file);
|
2003-01-23 19:45:57 +00:00
|
|
|
int OpenTCPSocket (void);
|
|
|
|
int BindSocket (int sockfd, struct sockaddr_in client, struct sockaddr_in server, int port, char* addr);
|
|
|
|
|
2004-04-07 17:26:30 +00:00
|
|
|
bool LoadConf(const char* filename, std::stringstream *target);
|
2004-04-07 13:22:17 +00:00
|
|
|
int ConfValue(char* tag, char* var, int index, char *result, std::stringstream *config);
|
|
|
|
int ReadConf(std::stringstream *config_f,const char* tag, const char* var, int index, char *result);
|
|
|
|
int ConfValueEnum(char* tag,std::stringstream *config);
|
|
|
|
int EnumConf(std::stringstream *config_f,const char* tag);
|
2003-01-23 19:45:57 +00:00
|
|
|
|