利用“原始套接字”(Raw Socket),我們可訪問位于基層的傳輸協(xié)議。本章專門講解如
何運用這種原始套接字,來模擬I P的一些實用工具,比如Tr a c e r o u t e和P i n g程序等等。使用原
始套接字,亦可對I P頭信息進行實際的操作。本章只關心I P協(xié)議;至于如何針對其他協(xié)議使
用原始套接字,我們不打算提及。而且,大多數協(xié)議(除AT M以外)根本就不支持原始套接
字。所有原始套接字都是使用S O C K _ R AW這個套接字類型來創(chuàng)建的,而且目前只有Wi n s o c k
2提供了對它的支持。因此,無論Microsoft Windows CE 還是老版本的Windows 95 (無
Winsock 2升級)均不能利用原始套接字的能力。
1、 了解系統(tǒng)調用pipe()的功能和實際原理
2、 編寫一段程序,使用管道實現父子進程之間的通信
a) 使用系統(tǒng)調用fork()創(chuàng)建一個子進程
b) 子進程調用函數write()向父進程發(fā)送自己的進程ID和字符串” s sending a message to parent.\n”。
c) 父進程調用函數read()通過管道讀出子進程發(fā)來的消息,將消息輸出屏幕,然后終止
This book is the most accurate and up-to-date source of information the STL currently available. ... It has an approach and appeal of its own: it explains techniques for building data structures and algorithms on top of the STL, and in this way appreciates the STL for what it is - a framework. Angelika Langer, Independent Consultant and C++ Report Columnist "A superbly authored treatment of the STL......an excellent book which belongs in any serious C++ developer s library." Jim Armstrong, President 2112 F/X, Texas. \n
The C++ Standard Template Library (STL) represents a breakthrough in C++ programming techniques. With it, software developers can achieve vast improvements in the reliability of their software, and increase their own productivity.
Yacc說明及使用文檔
yacc(Yet Another Compiler Compiler),是Unix/Linux上一個用來生成編譯器的編譯器(編譯器代碼生成器)。yacc生成的編譯器主要是用C語言寫成的語法解析器(Parser),需要與詞法解析器Lex一起使用,再把兩部份產生出來的C程序一併編譯。yacc本來只在Unix系統(tǒng)上才有,但現時已普遍移植往Windows及其他平臺。
我用matlab寫的一個corner detector, 效果比現在流行的harris,susan,CSS等效果要好。
Algorithm is derived from:
X.C. He and N.H.C. Yung, Curvature Scale Space Corner Detector with Adaptive Threshold and Dynamic Region of Support , Proceedings of the 17th International Conference on Pattern Recognition, 2:791-794, August 2004.
Improved algorithm has been included in A Corner Detector based on Global and Local Curvature Properties and submitted to Optical Engineering.