OpenVPN 3 Core Library
Loading...
Searching...
No Matches
CookieSession Struct Reference

The session kotun.hpp creates once intercept() has returned HANDLE_2ND. More...

Collaboration diagram for CookieSession:
[legend]

Public Member Functions

 CookieSession (const ProtoContext::ProtoConfig::Ptr &cfg, const ProtoSessionID &cookie_psid)
 
size_t recv (const BufferAllocated &pkt)
 

Public Attributes

NullProtoCallback cb
 
RCPtr< RecordingStatsrec {new RecordingStats()}
 
SessionStats::Ptr stats {rec}
 
ProtoContext proto
 

Detailed Description

The session kotun.hpp creates once intercept() has returned HANDLE_2ND.

Stood up the way ServerProto::Session::start() does, with the psid the cookie layer validated, and fed packets the way the transport feeds them.

Definition at line 812 of file test_psid_cookie.cpp.

Constructor & Destructor Documentation

◆ CookieSession()

CookieSession::CookieSession ( const ProtoContext::ProtoConfig::Ptr cfg,
const ProtoSessionID cookie_psid 
)
inline

Definition at line 819 of file test_psid_cookie.cpp.

Member Function Documentation

◆ recv()

size_t CookieSession::recv ( const BufferAllocated pkt)
inline
Returns
how many packets the session put on the wire in reply

Definition at line 829 of file test_psid_cookie.cpp.

Here is the caller graph for this function:

Member Data Documentation

◆ cb

NullProtoCallback CookieSession::cb

Definition at line 814 of file test_psid_cookie.cpp.

◆ proto

ProtoContext CookieSession::proto

Definition at line 817 of file test_psid_cookie.cpp.

◆ rec

RCPtr<RecordingStats> CookieSession::rec {new RecordingStats()}

Definition at line 815 of file test_psid_cookie.cpp.

◆ stats

SessionStats::Ptr CookieSession::stats {rec}

Definition at line 816 of file test_psid_cookie.cpp.


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