8#ifndef BOTAN_TLS_SERVER_INFO_H_
9#define BOTAN_TLS_SERVER_INFO_H_
11#include <botan/types.h>
32 m_hostname(hostname), m_service(), m_port(port) {}
42 m_hostname(hostname), m_service(service), m_port(port) {}
47 std::string
hostname()
const {
return m_hostname; }
53 std::string
service()
const {
return m_service; }
58 uint16_t
port()
const {
return m_port; }
63 bool empty()
const {
return m_hostname.empty(); }
66 std::string m_hostname, m_service;
85 if(a.
port() !=
b.port()) {
86 return (a.
port() <
b.port());
int(* final)(unsigned char *, CTX *)
#define BOTAN_PUBLIC_API(maj, min)
bool operator==(const Server_Information &a, const Server_Information &b)
bool operator<(const Server_Information &a, const Server_Information &b)
bool operator!=(const Server_Information &a, const Server_Information &b)