Motr  M0
rpc_helpers.h File Reference

Go to the source code of this file.

Macros

#define __MOTR_CONF_UT_RPC_HELPERS_H__
 

Functions

M0_INTERNAL int m0_ut_rpc_service_start (struct m0_reqh_service **service, const struct m0_reqh_service_type *type)
 
M0_INTERNAL int m0_ut_rpc_machine_start (struct m0_rpc_machine *mach, struct m0_net_xprt *xprt, const char *ep_addr)
 
M0_INTERNAL void m0_ut_rpc_machine_stop (struct m0_rpc_machine *mach)
 

Macro Definition Documentation

◆ __MOTR_CONF_UT_RPC_HELPERS_H__

#define __MOTR_CONF_UT_RPC_HELPERS_H__

Definition at line 24 of file rpc_helpers.h.

Function Documentation

◆ m0_ut_rpc_machine_start()

M0_INTERNAL int m0_ut_rpc_machine_start ( struct m0_rpc_machine mach,
struct m0_net_xprt xprt,
const char *  ep_addr 
)

Initialises net and rpc layers, performs m0_rpc_machine_init().

Definition at line 46 of file rpc_helpers.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ m0_ut_rpc_machine_stop()

M0_INTERNAL void m0_ut_rpc_machine_stop ( struct m0_rpc_machine mach)

Performs m0_rpc_machine_fini(), finalises rpc and net layers.

Definition at line 93 of file rpc_helpers.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ m0_ut_rpc_service_start()

M0_INTERNAL int m0_ut_rpc_service_start ( struct m0_reqh_service **  service,
const struct m0_reqh_service_type type 
)

Initializes and start reqh service of passed type.

Definition at line 32 of file rpc_helpers.c.

Here is the call graph for this function: