NewMadeleine

Documentation

« back to PM2 home.

Data Structures

struct  nm_core_tag_s
 An internal tag. More...
 

Macros

#define NM_CORE_TAG_HASH_FULL   ((nm_session_hash_t)0xFFFFFFFF)
 mask for all sessions
 
#define NM_CORE_TAG_MASK_FULL   ((nm_core_tag_t){ .tag = NM_TAG_MASK_FULL, .hashcode = NM_CORE_TAG_HASH_FULL })
 
#define NM_CORE_TAG_NONE   ((nm_core_tag_t){ .tag = 0, .hashcode = 0x0 })
 

Typedefs

typedef uint32_t nm_session_hash_t
 a session hashcode in tags, used to multiplex sessions
 
typedef struct nm_core_tag_s nm_core_tag_t
 

Functions

struct nm_core_tag_s __attribute__ ((packed))
 
static nm_core_tag_t nm_core_tag_build (nm_session_hash_t hashcode, nm_tag_t tag)
 
static nm_tag_t nm_core_tag_get_tag (nm_core_tag_t core_tag)
 
static nm_session_hash_t nm_core_tag_get_hashcode (nm_core_tag_t core_tag)
 

Detailed Description

Macro Definition Documentation

◆ NM_CORE_TAG_HASH_FULL

#define NM_CORE_TAG_HASH_FULL   ((nm_session_hash_t)0xFFFFFFFF)

mask for all sessions

Definition at line 257 of file nm_core_interface.h.

◆ NM_CORE_TAG_MASK_FULL

#define NM_CORE_TAG_MASK_FULL   ((nm_core_tag_t){ .tag = NM_TAG_MASK_FULL, .hashcode = NM_CORE_TAG_HASH_FULL })

Definition at line 268 of file nm_core_interface.h.

◆ NM_CORE_TAG_NONE

#define NM_CORE_TAG_NONE   ((nm_core_tag_t){ .tag = 0, .hashcode = 0x0 })

Definition at line 269 of file nm_core_interface.h.

Typedef Documentation

◆ nm_core_tag_t

typedef struct nm_core_tag_s nm_core_tag_t

Definition at line 266 of file nm_core_interface.h.

◆ nm_session_hash_t

typedef uint32_t nm_session_hash_t

a session hashcode in tags, used to multiplex sessions

Definition at line 254 of file nm_core_interface.h.

Function Documentation

◆ __attribute__()

struct nm_core_tag_s __attribute__ ( (packed)  )

◆ nm_core_tag_build()

◆ nm_core_tag_get_hashcode()

static nm_session_hash_t nm_core_tag_get_hashcode ( nm_core_tag_t  core_tag)
inlinestatic

◆ nm_core_tag_get_tag()

static nm_tag_t nm_core_tag_get_tag ( nm_core_tag_t  core_tag)
inlinestatic

Definition at line 278 of file nm_core_interface.h.

References nm_core_tag_s::tag.

Referenced by nm_sr_request_get_tag().