NewMadeleine

Documentation

« back to PM2 home.
Session interface

This is the session interface, the nmad interface used to build sessions. More...

Typedefs

typedef struct nm_session_snm_session_t
 

Functions

int nm_session_open (nm_session_t *pp_session, const char *label)
 Open a new session, assuming processes are already connected.
 
int nm_session_close (nm_session_t p_session)
 Disconnect and destroy a session.
 
nm_session_t nm_session_lookup (nm_session_hash_t hashcode)
 Lookup a session by hashcode.
 
const char * nm_session_get_name (nm_session_t p_session)
 Get the name of the given session.
 

Detailed Description

This is the session interface, the nmad interface used to build sessions.

Typedef Documentation

◆ nm_session_t

typedef struct nm_session_s* nm_session_t

Definition at line 28 of file nm_session_interface.h.

Function Documentation

◆ nm_session_close()

int nm_session_close ( nm_session_t  p_session)

Disconnect and destroy a session.

Examples
nm_launcher_mini.c, nm_rpc_hello.c, and nm_sr_custom_data.c.

Referenced by nm_examples_exit().

◆ nm_session_get_name()

const char * nm_session_get_name ( nm_session_t  p_session)

Get the name of the given session.

◆ nm_session_lookup()

nm_session_t nm_session_lookup ( nm_session_hash_t  hashcode)

Lookup a session by hashcode.

◆ nm_session_open()

int nm_session_open ( nm_session_t pp_session,
const char *  label 
)

Open a new session, assuming processes are already connected.

Examples
nm_launcher_mini.c, nm_rpc_hello.c, and nm_sr_custom_data.c.

Referenced by nm_examples_init_topo().