mirror of
https://github.com/znc/znc.git
synced 2026-05-18 07:15:54 +02:00
3a34593359
Same procedure as every year, James.
35 lines
877 B
C++
35 lines
877 B
C++
/*
|
|
* Copyright (C) 2004-2013 See the AUTHORS file for details.
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify it
|
|
* under the terms of the GNU General Public License version 2 as published
|
|
* by the Free Software Foundation.
|
|
*/
|
|
|
|
#ifndef _SERVER_H
|
|
#define _SERVER_H
|
|
|
|
#include <znc/zncconfig.h>
|
|
#include <znc/ZNCString.h>
|
|
|
|
class CServer {
|
|
public:
|
|
CServer(const CString& sName, unsigned short uPort = 6667, const CString& sPass = "", bool bSSL = false);
|
|
~CServer();
|
|
|
|
const CString& GetName() const;
|
|
unsigned short GetPort() const;
|
|
const CString& GetPass() const;
|
|
bool IsSSL() const;
|
|
CString GetString(bool bIncludePassword = true) const;
|
|
static bool IsValidHostName(const CString& sHostName);
|
|
private:
|
|
protected:
|
|
CString m_sName;
|
|
unsigned short m_uPort;
|
|
CString m_sPass;
|
|
bool m_bSSL;
|
|
};
|
|
|
|
#endif // !_SERVER_H
|