Yacc說明及使用文檔
yacc(Yet Another Compiler Compiler),是Unix/Linux上一個用來生成編譯器的編譯器(編譯器代碼生成器)。yacc生成的編譯器主要是用C語言寫成的語法解析器(Parser),需要與詞法解析器Lex一起使用,再把兩部份產生出來的C程序一併編譯。yacc本來只在Unix系統上才有,但現時已普遍移植往Windows及其他平臺。
A simple smtp relay server. Which follows smtp protocol correctly. It receive an email. and relay it out to an email server specified by users.
Platform: unix, linux, windows.
compilation command: g++ smtpr.c -lsocket -lnsl -o smtpr
usage: smtpr <port number> (<relay server>)