Motr  M0
conn.h File Reference
#include "lib/tlist.h"
#include "lib/time.h"
#include "sm/sm.h"
#include "rpc/onwire.h"
#include "fid/fid.h"
Include dependency graph for conn.h:

Go to the source code of this file.

Data Structures

struct  m0_rpc_conn
 

Macros

#define __MOTR_RPC_CONN_H__
 

Enumerations

enum  m0_rpc_conn_state {
  M0_RPC_CONN_INITIALISED, M0_RPC_CONN_CONNECTING, M0_RPC_CONN_ACTIVE, M0_RPC_CONN_FAILED,
  M0_RPC_CONN_TERMINATING, M0_RPC_CONN_TERMINATED, M0_RPC_CONN_FINALISED
}
 
enum  m0_rpc_conn_flags { RCF_SENDER_END = 1 << 0, RCF_RECV_END = 1 << 1, RCF_TRANSIENT_SENT = 1 << 2 }
 

Functions

M0_INTERNAL int m0_rpc_conn_init (struct m0_rpc_conn *conn, struct m0_fid *svc_fid, struct m0_net_end_point *ep, struct m0_rpc_machine *machine, uint64_t max_rpcs_in_flight)
 
M0_INTERNAL void m0_rpc_conn_reset (struct m0_rpc_conn *conn)
 
M0_INTERNAL int m0_rpc_conn_establish (struct m0_rpc_conn *conn, m0_time_t abs_timeout)
 
M0_INTERNAL int m0_rpc_conn_establish_sync (struct m0_rpc_conn *conn, m0_time_t abs_timeout)
 
M0_INTERNAL int m0_rpc_conn_create (struct m0_rpc_conn *conn, struct m0_fid *svc_fid, struct m0_net_end_point *ep, struct m0_rpc_machine *rpc_machine, uint64_t max_rpcs_in_flight, m0_time_t abs_timeout)
 
M0_INTERNAL int m0_rpc_conn_terminate (struct m0_rpc_conn *conn, m0_time_t abs_timeout)
 
M0_INTERNAL int m0_rpc_conn_terminate_sync (struct m0_rpc_conn *conn, m0_time_t abs_timeout)
 
M0_INTERNAL void m0_rpc_conn_fini (struct m0_rpc_conn *conn)
 
int m0_rpc_conn_destroy (struct m0_rpc_conn *conn, m0_time_t abs_timeout)
 
M0_INTERNAL int m0_rpc_conn_timedwait (struct m0_rpc_conn *conn, uint64_t states, const m0_time_t timeout)
 
M0_INTERNAL int m0_rpc_conn_ha_subscribe (struct m0_rpc_conn *conn, struct m0_fid *svc_fid)
 
M0_INTERNAL void m0_rpc_conn_ha_unsubscribe (struct m0_rpc_conn *conn)
 
M0_INTERNAL int m0_rpc_machine_conn_list_dump (struct m0_rpc_machine *machine, int dir)
 
M0_INTERNAL const char * m0_rpc_conn_addr (const struct m0_rpc_conn *conn)
 
M0_INTERNAL bool m0_rpc_conn_is_known_dead (const struct m0_rpc_conn *conn)
 
M0_INTERNAL struct m0_conf_objm0_rpc_conn2svc (const struct m0_rpc_conn *conn)
 
M0_INTERNAL void m0_rpc_conn_ha_cfg_set (struct m0_rpc_conn *conn, const struct m0_rpc_conn_ha_cfg *cfg)
 
M0_INTERNAL const char * m0_rpc_conn_state_to_str (enum m0_rpc_conn_state state)
 
M0_INTERNAL void m0_rpc_conn_sessions_cancel (struct m0_rpc_conn *conn)
 

Macro Definition Documentation

◆ __MOTR_RPC_CONN_H__

#define __MOTR_RPC_CONN_H__

Definition at line 26 of file conn.h.