Ark Server API (ASE) - Wiki
Loading...
Searching...
No Matches
Poco::Net::Session Class Reference

#include <Session.h>

+ Inheritance diagram for Poco::Net::Session:
+ Collaboration diagram for Poco::Net::Session:

Public Types

using Ptr = Poco::AutoPtr<Session>
 

Public Member Functions

SSL_SESSIONsslSession () const
 
- Public Member Functions inherited from Poco::RefCountedObject
 RefCountedObject ()
 
void duplicate () const
 
void release () const noexcept
 Increments the object's reference count.
 
int referenceCount () const
 

Protected Member Functions

 Session (SSL_SESSION *pSession)
 Returns the stored OpenSSL SSL_SESSION object.
 
 ~Session ()
 
- Protected Member Functions inherited from Poco::RefCountedObject
virtual ~RefCountedObject ()
 Returns the reference count.
 

Private Member Functions

 Session ()
 

Private Attributes

SSL_SESSION_pSession
 

Friends

class SecureSocketImpl
 

Detailed Description

This class encapsulates a SSL session object used with session caching on the client side.

For session caching to work, a client must save the session object from an existing connection, if it wants to reuse it with a future connection.

Definition at line 31 of file Session.h.

Member Typedef Documentation

◆ Ptr

Definition at line 40 of file Session.h.

Constructor & Destructor Documentation

◆ Session() [1/2]

Poco::Net::Session::Session ( SSL_SESSION * pSession)
protected

Returns the stored OpenSSL SSL_SESSION object.

◆ ~Session()

Poco::Net::Session::~Session ( )
protected

Creates a new Session object, using the given SSL_SESSION object.

The SSL_SESSION's reference count is not changed.

◆ Session() [2/2]

Poco::Net::Session::Session ( )
private

Destroys the Session.

Calls SSL_SESSION_free() on the stored SSL_SESSION object.

Member Function Documentation

◆ sslSession()

SSL_SESSION * Poco::Net::Session::sslSession ( ) const
inline

Definition at line 70 of file Session.h.

Friends And Related Symbol Documentation

◆ SecureSocketImpl

friend class SecureSocketImpl
friend

Definition at line 63 of file Session.h.

Member Data Documentation

◆ _pSession

SSL_SESSION* Poco::Net::Session::_pSession
private

Definition at line 61 of file Session.h.


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