Ai
1 Star 0 Fork 0

Aurora/Linux

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Common.hpp 395 Bytes
一键复制 编辑 原始数据 按行查看 历史
Aurora 提交于 2025-07-10 17:26 +08:00 . http version2
#pragma once
#include <iostream>
#define Die(code) \
do \
{ \
exit(code); \
} while (0)
#define CONV(v) (struct sockaddr *)(v)
enum
{
USAGE_ERR = 1, // 使用错误
SOCKET_ERR, // 创建套接字错误
BIND_ERR, // 绑定错误
LISTEN_ERR // 监听失败
};
const int gdefaultsockfd = -1;
const int gbacklog = 8;
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/Axurea/linux.git
git@gitee.com:Axurea/linux.git
Axurea
linux
Linux
master

搜索帮助