日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

libevent学习__学习历程总结

發布時間:2024/8/23 编程问答 36 豆豆
生活随笔 收集整理的這篇文章主要介紹了 libevent学习__学习历程总结 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
The libevent API provides a mechanism to execute a callback function when a specific event occurs on a file descriptor or after a timeout has been reached. Furthermore, libevent also support callbacks due to signals or regular timeouts.

環境搭建

  • 下載:?http://sourceforge.net/projects/levent/?source=directory

  • 安裝:

  • CFLAGS=-DUSE_DEBUG ./configure --disable-shared --prefix

  • make

  • make install

  • 學習資料

  • libevent學習資料

    • Libevent源碼分析專欄

    • Nick’s libevent manual

    • 在線查看libevent-book

  • autotools工具學習

    • Autotools Tutorial

    • GNU Hello?可以作為開源軟件入門的工程

  • 文檔工具的學習

    • 熟悉githit網站,以及Markdown標記語言

    • AsciiDoc標記語言,?亂談AsciiDoc的書籍編寫表示還不錯,再者去官網. libevent-book就是用AsciiDoc編寫.

    • doxydoc工具可以根據代碼注釋生成文檔,具體可以參考libevent的doc.

    • http://www.gnu.org/prep/standards/

  • 心得記

    學習東西總容易跑題,本人因為在看[Linux高性能服務器編程]這本書才決定看libevent源代碼的,看libevent過程中接觸了許多亂起八糟的東西.

    autotools根據手冊過了一遍,因為在工作過程都是手寫Makefile或者esplise生成,所以就不求甚解.DoxyDoc工具知道有這么回事.對于AsciiDoc標記語言,本人很感興趣,在學習過程中用作筆記還是比較不錯的選擇.

    補充后續要認識的一些庫與工具

    在Unix系統平臺上的網絡安全工具開發中,目前最為流行的C API library有libnet、libpcap、libnids和libicmp等。它們分別從不同層次和角度提供了不同的功能函數。使網絡開發人員能夠忽略網絡底層細節的實現,從而專注于程序本身具體功能的設計與開發。其中,
    • libnet提供的接口函數主要實現和封裝了數據包的構造和發送過程。http://blog.csdn.net/firstime_tzjz/article/details/8575304

    • libpcap提供的接口函數主要實現和封裝了與數據包截獲有關的過程。http://blog.csdn.net/htttw/article/details/7521053

    • libnids提供的接口函數主要實現了開發網絡入侵監測系統所必須的一些結構框架。

    • libicmp等相對較為簡單,它封裝的是ICMP數據包的主要處理過程(構造、發送、接收等)。

    The Tcpreplay suite includes the following tools:

    • tcpprep?- multi-pass pcap file pre-processor which determines packets as client or server and creates cache files used by tcpreplay and tcprewrite
    • tcprewrite?- pcap file editor which rewrites TCP/IP and Layer 2 packet headers
    • tcpreplay?- replays pcap files at arbitrary speeds onto the network
    • tcpliveplay?- Replays network traffic stored in a pcap file on live networks using new TCP connections
    • tcpreplay-edit?- replays & edits pcap files at arbitrary speeds onto the network
    • tcpbridge?- bridge two network segments with the power of tcprewrite
    • tcpcapinfo?- raw pcap file decoder and debugger

    AsciiDoc生成網頁直接復制到博客,OK?

    總結

    以上是生活随笔為你收集整理的libevent学习__学习历程总结的全部內容,希望文章能夠幫你解決所遇到的問題。

    如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。