1 Star 0 Fork 0

xsolars/tcp_flow_ctrl_test

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
tcp_flow_ctrl_test.h 563 Bytes
一键复制 编辑 原始数据 按行查看 历史
#pragma once
#include <stdio.h>
#include <errno.h>
#include <sys/time.h>
#define SERVER_PORT 8366
#define SEND_BLOCK_SIZE 1024
#define SEND_BLOCK_NUM 4096
#define SERVER_SEND_INVL_USEC 10000
#define CLIENT_HDLE_INVL_USEC 40000
#define SOCKET_WIN_SIZE 4096
#define PRINTF(fmt, ...) do{\
struct timeval now;\
gettimeofday(&now, NULL);\
printf("E {line %d}[%ld.%ld]: " fmt "\n", __LINE__, now.tv_sec, now.tv_usec / 1000, ##__VA_ARGS__);\
} while(0)
#define PERROR() printf("E {line %d}[%d]: %s\n", __LINE__, errno, strerror(errno))
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/xsolars/tcp_flow_ctrl_test.git
git@gitee.com:xsolars/tcp_flow_ctrl_test.git
xsolars
tcp_flow_ctrl_test
tcp_flow_ctrl_test
master

搜索帮助

D67c1975 1850385 1daf7b77 1850385