52 const char *client_ep =
"0@lo:12345:34:1";
77 .rhia_dtm = (
void *)1,
78 .rhia_mdstore = (
void *)1,
110 const char *remote_ep =
"0@lo:12345:35:1";
137 const char *remote_ep;
154 for (
i = 0;
i < 2; ++
i) {
191 const char *remote_ep;
272 const char *remote_ep;
362 const char *remote_ep;
static void rlut_reconnect(void)
M0_INTERNAL void m0_chan_wait(struct m0_clink *link)
void m0_rpc_machine_fini(struct m0_rpc_machine *machine)
M0_INTERNAL void m0_reqh_services_terminate(struct m0_reqh *reqh)
void m0_net_domain_fini(struct m0_net_domain *dom)
M0_INTERNAL void m0_clink_init(struct m0_clink *link, m0_chan_cb_t cb)
struct m0_ut_suite link_lib_ut
#define M0_REQH_INIT(reqh,...)
const m0_time_t M0_TIME_NEVER
M0_INTERNAL int m0_rpc_link_init(struct m0_rpc_link *rlink, struct m0_rpc_machine *mach, struct m0_fid *svc_fid, const char *ep, uint64_t max_rpcs_in_flight)
M0_INTERNAL void m0_fop_init(struct m0_fop *fop, struct m0_fop_type *fopt, void *data, void(*fop_release)(struct m0_ref *))
M0_INTERNAL void m0_buf_init(struct m0_buf *buf, void *data, uint32_t nob)
static struct m0_rpc_client_ctx cctx
M0_INTERNAL void m0_ha_ut_rpc_ctx_init(struct m0_ha_ut_rpc_ctx *ctx)
static struct m0_addb2_mach * mach
M0_INTERNAL void m0_rpc_link_fini(struct m0_rpc_link *rlink)
struct m0_fop_type m0_fop_ss_fopt
M0_INTERNAL void m0_reqh_fini(struct m0_reqh *reqh)
M0_INTERNAL const char * m0_rpc_machine_ep(const struct m0_rpc_machine *rmach)
static void rlut_fini(struct m0_net_domain *net_dom, struct m0_net_buffer_pool *buf_pool, struct m0_reqh *reqh, struct m0_rpc_machine *rmachine)
static void ut_req(struct m0_rpc_session *sess, const char *name, uint32_t cmd)
static void rlut_remote_delay(void)
M0_INTERNAL void m0_fi_disable(const char *fp_func, const char *fp_tag)
void rlut_connect_async()
static void m0_fi_enable(const char *func, const char *tag)
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)
M0_INTERNAL bool m0_rpc_link_is_connected(const struct m0_rpc_link *rlink)
static void stop_rpc_client_and_server(void)
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)
M0_INTERNAL void m0_rpc_link_reset(struct m0_rpc_link *rlink)
int m0_rpc_post_sync(struct m0_fop *fop, struct m0_rpc_session *session, const struct m0_rpc_item_ops *ri_ops, m0_time_t deadline)
M0_INTERNAL int m0_rpc_session_timedwait(struct m0_rpc_session *session, uint64_t states, const m0_time_t abs_timeout)
static void rlut_reset(void)
static void rlut_init(struct m0_net_domain *net_dom, struct m0_net_buffer_pool *buf_pool, struct m0_reqh *reqh, struct m0_rpc_machine *rmachine)
M0_INTERNAL int m0_rpc_link_disconnect_sync(struct m0_rpc_link *rlink, m0_time_t abs_timeout)
M0_INTERNAL int m0_rpc_link_connect_sync(struct m0_rpc_link *rlink, m0_time_t abs_timeout)
M0_INTERNAL void m0_ha_ut_rpc_ctx_fini(struct m0_ha_ut_rpc_ctx *ctx)
M0_INTERNAL void m0_ss_fop_release(struct m0_ref *ref)
M0_INTERNAL void m0_reqh_start(struct m0_reqh *reqh)
M0_INTERNAL void m0_rpc_link_connect_async(struct m0_rpc_link *rlink, m0_time_t abs_timeout, struct m0_clink *wait_clink)
uint32_t m0_rpc__filter_opcode[4]
int m0_net_domain_init(struct m0_net_domain *dom, const struct m0_net_xprt *xprt)
#define M0_ALLOC_PTR(ptr)
m0_time_t m0_time_from_now(uint64_t secs, long ns)
const char * rcx_remote_addr
M0_INTERNAL void m0_clink_fini(struct m0_clink *link)
void m0_fop_put_lock(struct m0_fop *fop)
static struct m0_fop * fop
static void m0_fi_enable_once(const char *func, const char *tag)
struct m0_rpc_machine rcx_rpc_machine
static struct m0_net_buffer_pool * buf_pool
struct m0_rpc_session rlk_sess
void m0_rpc_net_buffer_pool_cleanup(struct m0_net_buffer_pool *app_pool)
static struct m0_fop * ut_fop_alloc(const char *name, uint32_t cmd)
M0_INTERNAL void m0_rpc_link_disconnect_async(struct m0_rpc_link *rlink, m0_time_t abs_timeout, struct m0_clink *wait_clink)
static void rlut_remote_unreachable(void)
struct m0_fid g_process_fid
static void start_rpc_client_and_server(void)