暂无描述

ithewei 773253876d update event 6 年之前
base 773253876d update event 6 年之前
etc 62d8b5e69d update 6 年之前
event 773253876d update event 6 年之前
examples 773253876d update event 6 年之前
html 8aa49422f7 add event html 6 年之前
http 773253876d update event 6 年之前
misc 258a3a3df8 update 6 年之前
utils b05e3cbd1f add iowatcher 6 年之前
.gitignore ca10ab66df update 6 年之前
Makefile 773253876d update event 6 年之前
Makefile.in d9f7572882 update 6 年之前
README.md 47b2b8bb39 update 6 年之前
h.h 773253876d update event 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