30 #include "IPAddress.h" 61 : m_valid_session(false)
63 , m_ip(INADDR_NONE) {}
86 const IPAddress&
get_ip()
const {
return m_ip; }
109 void set_parameters(
const IPAddress& ip,
const char* hostname = NULL);
121 br_ssl_session_parameters*
to_br_session() {
return (br_ssl_session_parameters *)
this; }
124 bool m_valid_session;
This class stores values which allow SSLClient to save and resume SSL sessions.
Definition: SSLSession.h:52
br_ssl_session_parameters * to_br_session()
Returns a pointer to the ::br_ssl_session_parameters component of this class.
Definition: SSLSession.h:121
void set_parameters(const IPAddress &ip, const char *hostname=NULL)
Set the ip address and hostname of the session.
Definition: SSLSession.cpp:4
void clear_parameters()
Delete the parameters and invalidate the session.
Definition: SSLSession.cpp:19
bool is_valid_session() const
Definition: SSLSession.h:88
SSLSession & operator=(const SSLSession &)=delete
use clear_parameters or set_parameters instead
const IPAddress & get_ip() const
Get ::IPAddress associated with this session.
Definition: SSLSession.h:86
SSLSession()
SSLSession constructor.
Definition: SSLSession.h:60
const String & get_hostname() const
Get the hostname string associated with this session.
Definition: SSLSession.h:76