#include "lib/assert.h"
#include "lib/errno.h"
#include "lib/getopts.h"
#include "lib/memory.h"
#include "lib/misc.h"
#include "lib/thread.h"
#include "lib/time.h"
#include "motr/init.h"
#include "reqh/reqh.h"
#include "net/net.h"
#include "net/lnet/lnet.h"
#include "fop/fop.h"
#include "rpc/rpc.h"
#include "rpc/rpclib.h"
#include "rpc/item.h"
#include "rpc/it/ping_fop.h"
#include "rpc/it/ping_fop_xc.h"
#include "rpc/it/ping_fom.h"
#include "ut/cs_service.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <arpa/inet.h>
#include <netdb.h>
#include "module/instance.h"
Go to the source code of this file.
◆ SERVER_ADDB_STOB_FILE_NAME
#define SERVER_ADDB_STOB_FILE_NAME "linuxstob:m0rpcping_server_addb.stob" |
◆ SERVER_DB_FILE_NAME
#define SERVER_DB_FILE_NAME "m0rpcping_server.db" |
◆ SERVER_ENDPOINT
◆ SERVER_ENDPOINT_ADDR
#define SERVER_ENDPOINT_ADDR "0@lo:12345:34:1" |
◆ SERVER_LOG_FILE_NAME
#define SERVER_LOG_FILE_NAME "m0rpcping_server.log" |
◆ SERVER_STOB_FILE_NAME
#define SERVER_STOB_FILE_NAME "m0rpcping_server.stob" |
◆ anonymous enum
Enumerator |
---|
BUF_LEN | |
M0_LNET_PORTAL | |
MAX_RPCS_IN_FLIGHT | |
MAX_RETRIES | |
Definition at line 69 of file rpc_ping.c.
◆ ep_type
Enumerator |
---|
EP_SERVER | |
EP_CLIENT | |
Definition at line 67 of file rpc_ping.c.
◆ __print_stats()
◆ build_endpoint_addr()
static int build_endpoint_addr |
( |
enum ep_type |
type, |
|
|
char * |
out_buf, |
|
|
size_t |
buf_size |
|
) |
| |
|
static |
◆ int2str()
static int int2str |
( |
char * |
dest, |
|
|
size_t |
size, |
|
|
int |
src, |
|
|
int |
defval |
|
) |
| |
|
static |
◆ m0_rpc_ping_fini()
M0_INTERNAL void m0_rpc_ping_fini |
( |
void |
| ) |
|
◆ main()
int main |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |
◆ ping_reply_received()
static void ping_reply_received |
( |
struct m0_rpc_item * |
item | ) |
|
|
static |
◆ print_stats()
static void print_stats |
( |
struct m0_reqh * |
reqh | ) |
|
|
static |
◆ quit_dialog()
static void quit_dialog |
( |
void |
| ) |
|
|
static |
◆ rpcping_thread()
◆ run_client()
static int run_client |
( |
void |
| ) |
|
|
static |
◆ run_server()
static int run_server |
( |
void |
| ) |
|
|
static |
◆ send_ping_fop()
◆ client_endpoint
◆ client_nid
char* client_nid = "0@lo" |
|
static |
◆ client_tmid
◆ instance
◆ M0_XCA_DOMAIN
◆ max_rpc_msg_size
◆ nr_client_threads
int nr_client_threads = 1 |
|
static |
◆ nr_ping_bytes
◆ nr_ping_item
◆ ping_item_ops
Initial value:= {
}
static void ping_reply_received(struct m0_rpc_item *item)
Definition at line 238 of file rpc_ping.c.
◆ server_endpoint
◆ server_mode
◆ server_nid
char* server_nid = "0@lo" |
|
static |
◆ server_tmid
◆ tm_recv_queue_len
◆ verbose