libevent学习__学习历程总结

来源:互联网 发布:毫州康美中药城淘宝店 编辑:程序博客网 时间:2024/06/04 22:22

环境搭建

  1. 下载: http://sourceforge.net/projects/levent/?source=directory

  2. 安装:

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

    2. make

    3. make install

学习资料

  1. libevent学习资料

    • Libevent源码分析专栏

    • Nick’s libevent manual

    • 在线查看libevent-book

  2. autotools工具学习

    • Autotools Tutorial

    • GNU Hello 可以作为开源软件入门的工程

  3. 文档工具的学习

    • 熟悉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

0 0
原创粉丝点击