Ai
1 Star 0 Fork 0

Shawy/2023Linux

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
UdpServer.cc 484 Bytes
一键复制 编辑 原始数据 按行查看 历史
Shawy 提交于 2023-04-30 23:14 +08:00 . command version UdpServer
#include "UdpServer.hpp"
#include <memory>
#include <cstdio>
static void usage(std::string proc)
{
std::cout << "\nUsage: " << proc << " [PORT]\n" << std::endl;
}
// 指令: { ./UdpServer [PORT] }
int main(int argc, char* argv[])
{
if(argc != 2)
{
usage(argv[0]);
exit(1);
}
uint16_t port = atoi(argv[1]);
std::unique_ptr<UdpServer> server_ptr(new UdpServer(port));
server_ptr->initServer();
server_ptr->Start();
return 0;
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/shawyxy/2023-linux.git
git@gitee.com:shawyxy/2023-linux.git
shawyxy
2023-linux
2023Linux
main

搜索帮助