|
Botan
1.11.15
|
#include <tls_server_info.h>
Public Member Functions | |
| bool | empty () const |
| std::string | hostname () const |
| u16bit | port () const |
| Server_Information () | |
| Server_Information (const std::string &hostname, u16bit port=0) | |
| Server_Information (const std::string &hostname, const std::string &service, u16bit port=0) | |
| std::string | service () const |
Represents information known about a TLS server.
Definition at line 21 of file tls_server_info.h.
| Botan::TLS::Server_Information::Server_Information | ( | ) | [inline] |
An empty server info - nothing known
Definition at line 27 of file tls_server_info.h.
: m_hostname(""), m_service(""), m_port(0) {}
| Botan::TLS::Server_Information::Server_Information | ( | const std::string & | hostname, |
| u16bit | port = 0 |
||
| ) | [inline] |
| hostname | the host's DNS name, if known |
| port | specifies the protocol port of the server (eg for TCP/UDP). Zero represents unknown. |
Definition at line 34 of file tls_server_info.h.
| Botan::TLS::Server_Information::Server_Information | ( | const std::string & | hostname, |
| const std::string & | service, | ||
| u16bit | port = 0 |
||
| ) | [inline] |
| hostname | the host's DNS name, if known |
| service | is a text string of the service type (eg "https", "tor", or "git") |
| port | specifies the protocol port of the server (eg for TCP/UDP). Zero represents unknown. |
Definition at line 45 of file tls_server_info.h.
| bool Botan::TLS::Server_Information::empty | ( | ) | const [inline] |
Definition at line 56 of file tls_server_info.h.
Referenced by Botan::TLS::Session_Manager_In_Memory::save().
{ return m_hostname.empty(); }
| std::string Botan::TLS::Server_Information::hostname | ( | ) | const [inline] |
Definition at line 50 of file tls_server_info.h.
Referenced by Botan::TLS::Client::Client(), Botan::TLS::Client_Hello::Client_Hello(), Botan::TLS::Session::DER_encode(), Botan::TLS::Session_Manager_SQL::load_from_server_info(), Botan::TLS::operator<(), Botan::TLS::operator==(), and Botan::TLS::Session_Manager_SQL::save().
{ return m_hostname; }
| u16bit Botan::TLS::Server_Information::port | ( | ) | const [inline] |
Definition at line 54 of file tls_server_info.h.
Referenced by Botan::TLS::Session::DER_encode(), Botan::TLS::Session_Manager_SQL::load_from_server_info(), Botan::TLS::operator<(), Botan::TLS::operator==(), and Botan::TLS::Session_Manager_SQL::save().
{ return m_port; }
| std::string Botan::TLS::Server_Information::service | ( | ) | const [inline] |
Definition at line 52 of file tls_server_info.h.
Referenced by Botan::TLS::Session::DER_encode(), Botan::TLS::operator<(), and Botan::TLS::operator==().
{ return m_service; }
1.7.6.1