This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
tango-tfe/cache/test/README.txt

16 lines
655 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

1、tango_cache_test.c是天狗使用的demo需要外部创建并监听event_base执行方法如下
打开一个终端,执行./tango_cache_test
打开另一个终端,执行:
获取echo GET:tcpdump_all_1.pcap > cache.fifo
流式上传:
echo PUT:tcpdump_all_1.pcap > cache.fifo
完整上传:
echo PUTONCE:tcpdump_all_1.pcap > cache.fifo
2、cache_evbase_test.c是对天狗cache的封装用户不必自己创建event_base程序内部创建执行方法如下
获取:./cache_evbase_test GET:tcpdump_all_1.pcap
流式上传:./cache_evbase_test PUT:tcpdump_all_1.pcap
完整上传:./cache_evbase_test PUTONCE:tcpdump_all_1.pcap
以上所有都是针对文件对象tcpdump_all_1.pcap而言的实际应用时替换成具体的文件名。