⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 gc.cpp

📁 Sector is a system infrastructure software that provides functionality for distributed data storage,
💻 CPP
字号:
#include <gmp.h>#include <message.h>#include <unistd.h>#include <iostream>using namespace std;using namespace cb;int main(){   cb::CGMP gmp;   gmp.init(7000);   cout << "TEST " << gmp.rtt("127.0.0.1", 6000) << endl;   CUserMessage req, res;   req.m_iDataLength = 2000;   int32_t id;   while (true)   {      id = 0;      gmp.sendto("127.0.0.1", 6000, id, &req);      gmp.recv(id, &res);      cout << "response: " << id << " " << res.m_pcBuffer << " " << res.m_iDataLength << " " << gmp.rtt("127.0.0.1", 6000) << endl;      //sleep(1);      cout << endl << endl;   }   return 1;}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -