35 static const char *
ep_addr =
"0@lo:12345:34:2";
57 .rhia_dtm = (
void *)1,
59 .rhia_mdstore = (
void *)1,
struct m0_rpc_machine * mw_mach
void m0_rpc_machine_fini(struct m0_rpc_machine *machine)
void m0_net_domain_fini(struct m0_net_domain *dom)
void(* mw_conn_added)(struct m0_rpc_machine_watch *w, struct m0_rpc_conn *conn)
static const char * ep_addr
#define M0_REQH_INIT(reqh,...)
const m0_time_t M0_TIME_NEVER
static void sctx_reset(void)
static bool mach_terminated_called
int m0_rpc_server_start(struct m0_rpc_server_ctx *sctx)
int m0_rpc_session_destroy(struct m0_rpc_session *session, m0_time_t abs_timeout)
static struct m0_rpc_client_ctx cctx
static void mach_terminated(struct m0_rpc_machine_watch *watch)
static void session_added(struct m0_rpc_machine_watch *watch, struct m0_rpc_session *session)
M0_INTERNAL void m0_reqh_fini(struct m0_reqh *reqh)
static void rpc_mc_init_fail_test(void)
M0_INTERNAL bool m0_rpc_machine_is_locked(const struct m0_rpc_machine *machine)
static void rpc_mc_fini_race_test(void)
struct m0_ut_suite rpc_mc_ut
void(* mw_session_added)(struct m0_rpc_machine_watch *w, struct m0_rpc_session *session)
M0_INTERNAL int m0_rpc_client_connect(struct m0_rpc_conn *conn, struct m0_rpc_session *session, struct m0_rpc_machine *rpc_mach, const char *remote_addr, struct m0_fid *svc_fid, uint64_t max_rpcs_in_flight, m0_time_t abs_timeout)
M0_INTERNAL void m0_fi_disable(const char *fp_func, const char *fp_tag)
static void m0_fi_enable(const char *func, const char *tag)
struct m0_net_transfer_mc rm_tm
M0_INTERNAL int m0_rpc_net_buffer_pool_setup(struct m0_net_domain *ndom, struct m0_net_buffer_pool *app_pool, uint32_t bufs_nr, uint32_t tm_nr)
M0_INTERNAL uint32_t m0_rpc_bufs_nr(uint32_t len, uint32_t tms_nr)
int m0_rpc_conn_destroy(struct m0_rpc_conn *conn, m0_time_t abs_timeout)
int m0_rpc_client_stop(struct m0_rpc_client_ctx *cctx)
M0_INTERNAL int m0_rpc_machine_init(struct m0_rpc_machine *machine, struct m0_net_domain *net_dom, const char *ep_addr, struct m0_reqh *reqh, struct m0_net_buffer_pool *receive_pool, uint32_t colour, m0_bcount_t msg_size, uint32_t queue_len)
struct m0_net_xprt * m0_net_xprt_default_get(void)
int m0_rpc_client_start(struct m0_rpc_client_ctx *cctx)
void m0_rpc_machine_watch_attach(struct m0_rpc_machine_watch *watch)
static struct m0_rpc_server_ctx sctx
static struct m0_net_domain client_net_dom
static int rpc_mc_ut_fini(void)
void m0_rpc_machine_watch_detach(struct m0_rpc_machine_watch *watch)
static uint32_t max_rpc_msg_size
void(* mw_mach_terminated)(struct m0_rpc_machine_watch *w)
static void rpc_mc_init_fini_test(void)
int m0_net_domain_init(struct m0_net_domain *dom, const struct m0_net_xprt *xprt)
struct m0_net_end_point * ntm_ep
static bool session_added_called
static struct m0_rpc_machine machine
static bool conn_added_called
static struct m0_net_buffer_pool buf_pool
static void m0_fi_enable_once(const char *func, const char *tag)
void m0_rpc_server_stop(struct m0_rpc_server_ctx *sctx)
static void rpc_machine_watch_test(void)
static uint32_t tm_recv_queue_min_len
void m0_rpc_net_buffer_pool_cleanup(struct m0_net_buffer_pool *app_pool)
static struct m0_reqh reqh
static int rpc_mc_ut_init(void)
M0_INTERNAL struct m0_rpc_machine * m0_rpc_server_ctx_get_rmachine(struct m0_rpc_server_ctx *sctx)
struct m0_fid g_process_fid
static void conn_added(struct m0_rpc_machine_watch *watch, struct m0_rpc_conn *conn)