EpcTools
An event based multi-threaded C++ development framework.
Public Member Functions | Static Public Member Functions | List of all members
PFCP::SessionBase Class Reference

Represents a PFCP session. It is expected that a developer utilizing this library will derive their own specialized session object from this class. More...

#include <epfcp.h>

Public Member Functions

 SessionBase (LocalNodeSPtr &ln, RemoteNodeSPtr &rn)
 Class constructor. More...
 
 SessionBase (const SessionBase &s)
 Copy constructor. More...
 
virtual ~SessionBase ()
 Class destructor. More...
 
LocalNodeSPtr & localNode ()
 Returns the LocalNode object associated with this session. More...
 
RemoteNodeSPtr & remoteNode ()
 Returns the RemoteNode object associated with this session. More...
 
const Seid localSeid () const
 Returns the SEID associated with this session. More...
 
const Seid remoteSeid () const
 Returns the remote SEID associated with this session. More...
 
SessionBasesetSeid (SessionBaseSPtr &s, Seid ls, Seid rs, Bool notify=True)
 Sets the local and remote SEID for this session. More...
 
SessionBasesetLocalSeid (SessionBaseSPtr &s, Seid ls)
 Sets the local SEID for this session. More...
 
SessionBasesetRemoteSeid (SessionBaseSPtr &s, Seid rs)
 Sets the remote SEID for this session. More...
 
virtual Void destroy (SessionBaseSPtr &s)
 Starts the destruction process for the session. More...
 

Static Public Member Functions

static ULongLong sessionsCreated ()
 
static ULongLong sessionsDeleted ()
 
static void * operator new (size_t sz)
 
static void operator delete (void *m)
 

Detailed Description

Represents a PFCP session. It is expected that a developer utilizing this library will derive their own specialized session object from this class.

Constructor & Destructor Documentation

PFCP::SessionBase::SessionBase ( LocalNodeSPtr &  ln,
RemoteNodeSPtr &  rn 
)
inline

Class constructor.

Parameters
lnthe LocalNode for this session.
rnthe RemoteNode for this session.
PFCP::SessionBase::SessionBase ( const SessionBase s)
inline

Copy constructor.

Parameters
sthe SessionBase object to copy.
virtual PFCP::SessionBase::~SessionBase ( )
virtual

Class destructor.

Member Function Documentation

virtual Void PFCP::SessionBase::destroy ( SessionBaseSPtr s)
virtual

Starts the destruction process for the session.

LocalNodeSPtr& PFCP::SessionBase::localNode ( )
inline

Returns the LocalNode object associated with this session.

Returns
the LocalNode object associated with this session.
const Seid PFCP::SessionBase::localSeid ( ) const
inline

Returns the SEID associated with this session.

Returns
the SEID associated with this session.
static void PFCP::SessionBase::operator delete ( void *  m)
inlinestatic
static void* PFCP::SessionBase::operator new ( size_t  sz)
inlinestatic
RemoteNodeSPtr& PFCP::SessionBase::remoteNode ( )
inline

Returns the RemoteNode object associated with this session.

Returns
the RemoteNode object associated with this session.
const Seid PFCP::SessionBase::remoteSeid ( ) const
inline

Returns the remote SEID associated with this session.

Returns
the remote SEID associated with this session.
static ULongLong PFCP::SessionBase::sessionsCreated ( )
inlinestatic
static ULongLong PFCP::SessionBase::sessionsDeleted ( )
inlinestatic
SessionBase& PFCP::SessionBase::setLocalSeid ( SessionBaseSPtr s,
Seid  ls 
)
inline

Sets the local SEID for this session.

Parameters
sa shared pointer associated with this session object.
lsthe local SEID.
Returns
a reference to this object.
SessionBase& PFCP::SessionBase::setRemoteSeid ( SessionBaseSPtr s,
Seid  rs 
)
inline

Sets the remote SEID for this session.

Parameters
sa shared pointer associated with this session object.
rsthe remote SEID.
Returns
a reference to this object.
SessionBase& PFCP::SessionBase::setSeid ( SessionBaseSPtr s,
Seid  ls,
Seid  rs,
Bool  notify = True 
)

Sets the local and remote SEID for this session.

Parameters
sa shared pointer associated with this session object.
lsthe local SEID.
rsthe remote SEID.
Returns
a reference to this object.

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