metaproxy  1.21.0
Public Member Functions | Private Attributes | List of all members
metaproxy_1::filter::SessionShared::InitKey Class Reference
Collaboration diagram for metaproxy_1::filter::SessionShared::InitKey:
Collaboration graph

Public Member Functions

bool operator< (const SessionShared::InitKey &k) const
 
 InitKey (Z_InitRequest *req)
 
 InitKey (const InitKey &)
 
 ~InitKey ()
 

Private Attributes

char * m_idAuthentication_buf
 
int m_idAuthentication_size
 
char * m_otherInfo_buf
 
int m_otherInfo_size
 
ODR m_odr
 

Detailed Description

Definition at line 53 of file filter_session_shared.cpp.

Constructor & Destructor Documentation

◆ InitKey() [1/2]

mp::filter::SessionShared::InitKey::InitKey ( Z_InitRequest *  req)

Definition at line 266 of file filter_session_shared.cpp.

267 {
268  m_odr = odr_createmem(ODR_ENCODE);
269 
270  Z_IdAuthentication *t = req->idAuthentication;
271  z_IdAuthentication(m_odr, &t, 1, 0);
273  odr_getbuf(m_odr, &m_idAuthentication_size, 0);
274 
275  Z_OtherInformation *o = req->otherInfo;
276  z_OtherInformation(m_odr, &o, 1, 0);
277  m_otherInfo_buf = odr_getbuf(m_odr, &m_otherInfo_size, 0);
278 }

◆ InitKey() [2/2]

metaproxy_1::filter::SessionShared::InitKey::InitKey ( const InitKey )

◆ ~InitKey()

mp::filter::SessionShared::InitKey::~InitKey ( )

Definition at line 280 of file filter_session_shared.cpp.

281 {
282  odr_destroy(m_odr);
283 }

Member Function Documentation

◆ operator<()

bool mp::filter::SessionShared::InitKey::operator< ( const SessionShared::InitKey k) const

Definition at line 285 of file filter_session_shared.cpp.

287 {
288  int c;
289  c = mp::util::memcmp2(
291  (void*) k.m_idAuthentication_buf, k.m_idAuthentication_size);
292  if (c < 0)
293  return true;
294  else if (c > 0)
295  return false;
296 
297  c = mp::util::memcmp2((void*) m_otherInfo_buf, m_otherInfo_size,
298  (void*) k.m_otherInfo_buf, k.m_otherInfo_size);
299  if (c < 0)
300  return true;
301  else if (c > 0)
302  return false;
303  return false;
304 }

References m_idAuthentication_buf, m_idAuthentication_size, m_otherInfo_buf, and m_otherInfo_size.

Member Data Documentation

◆ m_idAuthentication_buf

char* metaproxy_1::filter::SessionShared::InitKey::m_idAuthentication_buf
private

Definition at line 60 of file filter_session_shared.cpp.

Referenced by operator<().

◆ m_idAuthentication_size

int metaproxy_1::filter::SessionShared::InitKey::m_idAuthentication_size
private

Definition at line 61 of file filter_session_shared.cpp.

Referenced by operator<().

◆ m_odr

ODR metaproxy_1::filter::SessionShared::InitKey::m_odr
private

Definition at line 64 of file filter_session_shared.cpp.

◆ m_otherInfo_buf

char* metaproxy_1::filter::SessionShared::InitKey::m_otherInfo_buf
private

Definition at line 62 of file filter_session_shared.cpp.

Referenced by operator<().

◆ m_otherInfo_size

int metaproxy_1::filter::SessionShared::InitKey::m_otherInfo_size
private

Definition at line 63 of file filter_session_shared.cpp.

Referenced by operator<().


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