1 Star 1 Fork 3

小众镜像/ngrok-c

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
config.h 911 Bytes
一键复制 编辑 原始数据 按行查看 历史
onlyJinx 提交于 2019-08-17 13:00 . Update config.h
#ifndef __CONFIG_H__
#define __CONFIG_H__
#ifndef OPENSSL
#define OPENSSL 1
#endif
#ifndef OPENSSLDL
#define OPENSSLDL 0
#endif
#ifndef ISMBEDTLS
#define ISMBEDTLS 1
#endif
#define MAXBUF 2048
#define DEBUG 0
#define UDPCMD 1
#define UDPTUNNEL 1
#include <stdarg.h>
#include <stdio.h>
#include <string.h>
#include "global.h"
inline int echo(const char* format, ...)
{
int n=0;
va_list ap;
va_start(ap, format);
n = vprintf(format,ap);
fflush(stdout);
va_end(ap);
return n;
}
inline int hex(char *xx,int len){
printf("buf:");
for(int i=0;i<len;i++)
{
unsigned char c = xx[i]; // must use unsigned char to print >128 value
if( c< 16)
{
printf("0%x", c);
}
else
{
printf("%x", c);
}
}
printf("\r\n");
return 0;
}
#endif
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/OtherCopy/ngrok-c.git
[email protected]:OtherCopy/ngrok-c.git
OtherCopy
ngrok-c
ngrok-c
master

搜索帮助