Botan  1.11.15
Public Member Functions
Botan::TLS::Server_Information Class Reference

#include <tls_server_info.h>

List of all members.

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

Detailed Description

Represents information known about a TLS server.

Definition at line 21 of file tls_server_info.h.


Constructor & Destructor Documentation

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]
Parameters:
hostnamethe host's DNS name, if known
portspecifies the protocol port of the server (eg for TCP/UDP). Zero represents unknown.

Definition at line 34 of file tls_server_info.h.

                                         :
         m_hostname(hostname), m_service(""), m_port(port) {}
Botan::TLS::Server_Information::Server_Information ( const std::string &  hostname,
const std::string &  service,
u16bit  port = 0 
) [inline]
Parameters:
hostnamethe host's DNS name, if known
serviceis a text string of the service type (eg "https", "tor", or "git")
portspecifies the protocol port of the server (eg for TCP/UDP). Zero represents unknown.

Definition at line 45 of file tls_server_info.h.

                                         :
         m_hostname(hostname), m_service(service), m_port(port) {}

Member Function Documentation

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]
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; }

The documentation for this class was generated from the following file: