unix網路程式設計的搭建

2021-06-19 02:34:15 字數 817 閱讀 1994

環境:kubuntu 11.10

ide:eclipse

tar -zxvf unpv13e.tar.gz 

2。終端中進入unpv13e目錄(需要給configure檔案增加x許可權)

./configure 

cd lib 

make 

cd ../libfree  # 

continue

building the basic library 

make 

然後在unpv13e資料夾中成功生成libunp.a檔案 

3.將生成的libunp.a

靜態庫複製到/usr/lib/中

cd .. 

sudo cp libunp.a /usr/lib  

4,修改unp.h並將其和config.h拷貝到/usr/include中,為了以後include方便

kate lib/unp.h   //將unp.h中#include 

"../config.h"

修改為#include 

"config.h"

sudo cp lib/unp.h /usr/include   

sudo cp config.h /usr/include  

這裡複製到/usr/include目錄後,非root使用者無權檢視,記得chmod 744 一下

《UNIX網路程式設計》實驗環境搭建 unp h

學linux下的網路程式設計,stevens的 unix網路程式設計 卷一 不可不看。經典中的戰鬥機。本文記錄實驗環境的搭建過程。本人linux用的是centos 6.4 得到原始碼包 unpv13e.tar.gz tar zxvf unpv13e.tar.gz cd unpv13e 閱讀readm...

UNIX網路程式設計

在unix network programming 的 3.7 inet pton and inet ntop functions 中提到中有如下兩個巨集定義 define inet addrstrlen 16 for ipv4 dotted decimal define inet6 addrstr...

unix網路程式設計

任何tcp的實現都需要為msl選擇乙個合適的值,rfc的建議值是2分鐘。分組可能出現迷途,若迷途分組在msl中找到路,造成重複,tcp必須修復 time wait存在的理由 可靠的實現全雙工的連線和終止 考慮最終ack丟失的情況,允許老的重複分組在網路中消逝 tcp的化生身現象,因為time wai...