Motr
M0
|
Data Fields | |
struct m0_net_test_nh | npc_nh |
struct m0_net_test_network_ctx | npc_net |
struct m0_net_test_service * | npc_svc |
size_t | npc_buf_nr |
m0_bcount_t | npc_buf_size |
m0_time_t | npc_buf_send_timeout |
bool | npc_test_initialized |
struct m0_semaphore | npc_buf_q_sem |
struct m0_net_test_ringbuf | npc_buf_rb |
struct m0_semaphore | npc_buf_rb_sem |
bool | npc_buf_rb_done |
struct buf_state * | npc_buf_state |
struct m0_thread | npc_thread |
union { | |
struct node_ping_client_ctx npc__client | |
struct node_ping_server_ctx npc__server | |
}; | |
struct node_ping_client_ctx * | npc_client |
struct node_ping_server_ctx * | npc_server |
Ping node context
Definition at line 159 of file node_ping.c.
union { ... } |
struct node_ping_client_ctx npc__client |
Definition at line 202 of file node_ping.c.
struct node_ping_server_ctx npc__server |
Definition at line 203 of file node_ping.c.
size_t npc_buf_nr |
Number of network buffers to send/receive test messages.
Definition at line 170 of file node_ping.c.
struct m0_semaphore npc_buf_q_sem |
Buffer enqueue semaphore.
Definition at line 190 of file node_ping.c.
struct m0_net_test_ringbuf npc_buf_rb |
Ringbuf of buffers that are not in network buffers queue
Definition at line 192 of file node_ping.c.
bool npc_buf_rb_done |
Previous up() was from node_ping_cmd_stop()
Definition at line 196 of file node_ping.c.
struct m0_semaphore npc_buf_rb_sem |
up() after adding buffer to queue, down() before receiving
Definition at line 194 of file node_ping.c.
m0_time_t npc_buf_send_timeout |
Timeout for test message sending
Definition at line 174 of file node_ping.c.
m0_bcount_t npc_buf_size |
Size of network buffers.
Definition at line 172 of file node_ping.c.
struct buf_state* npc_buf_state |
Array of buffer states
Definition at line 198 of file node_ping.c.
struct node_ping_client_ctx* npc_client |
Client context. Set to NULL on the test server, set to &node_ping_ctx.npc__client on the test client.
Definition at line 209 of file node_ping.c.
struct m0_net_test_network_ctx npc_net |
Network context for testing
Definition at line 163 of file node_ping.c.
struct m0_net_test_nh npc_nh |
Node helper
Definition at line 161 of file node_ping.c.
struct node_ping_server_ctx* npc_server |
Server context. See npc_client.
Definition at line 213 of file node_ping.c.
struct m0_net_test_service* npc_svc |
Test service. Used when changing service state.
Definition at line 165 of file node_ping.c.
bool npc_test_initialized |
Test was initialized (successful node_ping_cmd_start())
Definition at line 176 of file node_ping.c.
struct m0_thread npc_thread |
Worker thread
Definition at line 200 of file node_ping.c.