运行 mapd -I /etc/map/mapd_cfg -O /etc/mapd_strng.conf calltree main() mapd_init() // DB NAME=./client_db.txt // Man Daemon XX version: v2.0.0 mapd_global_ctrl_iface_init() mapd_global_ctrl_iface_open_sock() socket(PF_UNIX, SOCK_DGRAM, 0); // /tmp/mapd_ctrl ? addr.sun_path[0] = '\0'; // 学习一下 // https://blog.csdn.net/u013920085/article/details/51028541 bind(priv->sock, (struct sockaddr *) &addr, sizeof(addr)); eloop_register_read_sock(mapd_global_ctrl_iface_receive); mapd_global_ctrl_iface_receive() mapd_global_ctrl_iface_process() // I got a commapd dump_topology_v1 1 /tmp/dump.txt // I got a commapd GET role // Succesfully connected to WAPPD wapp_open_connection("/tmp/wapp_ctrl", global); wapp_usr_intf_ctrl_open("mapd", ctrl_path);……
阅读全文