NewMadeleine

Documentation

nm_rpc_service_s Struct Reference

descriptor for a registered RPC service More...

#include <nm_rpc_private.h>

Collaboration diagram for nm_rpc_service_s:

Data Fields

struct nm_rpc_token_list_s token_list
 tokens given to rpc handlers More...
 
nm_spinlock_t token_list_lock
 lock for the above list More...
 
nm_tag_t tag
 tag(s) to listen to for this service More...
 
nm_tag_t tag_mask
 tag mask to apply to above tag More...
 
nm_rpc_handler_t p_handler
 user-supplied function, called upon header arrival More...
 
nm_rpc_finalizer_t p_finalizer
 user-supplied function, called upon data body arrival More...
 
nm_session_t p_session
 session used to send/recv requests More...
 
void * ref
 user-supplied ref for the service More...
 
int running
 whether the service is currently running More...
 

Detailed Description

descriptor for a registered RPC service

Examples
nm_rpc_hello.c.

Definition at line 57 of file nm_rpc_private.h.

Field Documentation

◆ p_finalizer

nm_rpc_finalizer_t nm_rpc_service_s::p_finalizer

user-supplied function, called upon data body arrival

Definition at line 64 of file nm_rpc_private.h.

◆ p_handler

nm_rpc_handler_t nm_rpc_service_s::p_handler

user-supplied function, called upon header arrival

Definition at line 63 of file nm_rpc_private.h.

◆ p_session

nm_session_t nm_rpc_service_s::p_session

session used to send/recv requests

Definition at line 65 of file nm_rpc_private.h.

Referenced by nm_rpc_recv_header_data().

◆ ref

void* nm_rpc_service_s::ref

user-supplied ref for the service

Definition at line 66 of file nm_rpc_private.h.

Referenced by nm_rpc_service_get_ref().

◆ running

int nm_rpc_service_s::running

whether the service is currently running

Definition at line 67 of file nm_rpc_private.h.

◆ tag

nm_tag_t nm_rpc_service_s::tag

tag(s) to listen to for this service

Definition at line 61 of file nm_rpc_private.h.

◆ tag_mask

nm_tag_t nm_rpc_service_s::tag_mask

tag mask to apply to above tag

Definition at line 62 of file nm_rpc_private.h.

◆ token_list

struct nm_rpc_token_list_s nm_rpc_service_s::token_list

tokens given to rpc handlers

Definition at line 59 of file nm_rpc_private.h.

◆ token_list_lock

nm_spinlock_t nm_rpc_service_s::token_list_lock

lock for the above list

Definition at line 60 of file nm_rpc_private.h.


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