بدون توضیح

ithewei d9f7572882 update 6 سال پیش
base d9f7572882 update 6 سال پیش
etc 62d8b5e69d update 6 سال پیش
event b05e3cbd1f add iowatcher 6 سال پیش
examples b05e3cbd1f add iowatcher 6 سال پیش
html 8aa49422f7 add event html 6 سال پیش
http b05e3cbd1f add iowatcher 6 سال پیش
misc 258a3a3df8 update 6 سال پیش
utils b05e3cbd1f add iowatcher 6 سال پیش
.gitignore ca10ab66df update 6 سال پیش
Makefile 47abbb8e1f update 6 سال پیش
Makefile.in d9f7572882 update 6 سال پیش
README.md 47b2b8bb39 update 6 سال پیش
h.h 032940b3ec update 6 سال پیش
main.cpp.tmpl ca3d595346 update 6 سال پیش

README.md

Intro

hw 是一套跨平台c++工具集,类名以H开头

platform

  • gcc
  • mingw
  • msvc

required

  • c++11

Module

base

  • hplatform.h: 平台相关
  • hdef.h: 宏定义
  • hversion.h: 版本
  • hsysinfo.h: 系统信息
  • hproc.h: 子进程/线程类
  • htime.h: 时间
  • herr.h: 错误码
  • hlog.h: 日志
  • hstring.h: 字符串
  • hvar.h: var变量
  • hobj.h: 对象基类
  • hgui.h: gui相关定义
  • hbuf.h: 缓存类
  • hfile.h: 文件类
  • hscope.h: 作用域RAII机制
  • hmutex.h:同步锁
  • hthread.h:线程
  • hthreadpool.h:线程池

utils

  • hendian.h: 大小端
  • hmain.h: main_ctx: arg env
  • ifconfig.h: ifconfig实现
  • singleton.h: 单例模式
  • iniparser.h: ini解析

event

  • hloop.h: 事件循环

http

  • http_client.h: http客户端
  • http_server.h: http服务端

other

  • h.h:总头文件
  • Makefile.in: 通用Makefile模板
  • main.cpp.tmpl: 通用main.cpp模板

BUILD

# all: test client server httpd webbench
make all
# curl deps libcurl
make curl