注册 登录
自由的生活_软路由 返回首页

心想事成的个人空间 https://bbs.routerclub.com/?681 [收藏] [复制] [分享] [RSS]

日志

tsdecrypt中所带的libfunc模块

已有 1255 次阅读2013-5-9 22:25 | 模块

tsdecrypt中所带的libfunc模块

libfuncs包含了常用的功能模块,你在写C程序的时候,直接调用libfuncs,将会方便快捷,事倍功半。
粗略看了下,里面包含了:
async_resolve_host 异步DNS查询
Circular buffer 循环缓冲
http_response HTTP响应处理
UX IO 
struct LIST 双向链表
LOG functions 日志 定时器
Queue handling 线程池

http://georgi.unixsol.org/programs/libfuncs/

使用方法:
Using it
========
Clone or download libfuncs in a directory in your source tree and
look at the example Makefile bellow:

---
FUNCS_DIR = libfuncs
FUNCS_LIB = $(FUNCS_DIR)/libfuncs.a

all: prog

prog_OBJS = main.o $(FUNCS_LIB)

$(FUNCS_LIB):
$(MAKE) -s -C $(FUNCS_DIR)

prog: $(prog_OBJS)
$(CC) $(CFLAGS) $(prog_OBJS) -o prog
---

In every C file that you need to use it, add

#include "libfuncs/libfuncs.h"


路过

雷人

握手

鲜花

鸡蛋

评论 (0 个评论)

facelist doodle 涂鸦板

您需要登录后才可以评论 登录 | 注册

QQ|Archiver|手机版|小黑屋|软路由 ( 渝ICP备15001194号-1|渝公网安备 50011602500124号 )

GMT+8, 2024-5-10 21:09 , Processed in 0.035211 second(s), 5 queries , Gzip On, Redis On.

Powered by Discuz! X3.5 Licensed

© 2001-2023 Discuz! Team.

返回顶部