0
我是一個真正的py和TCP新手,但我需要發送18到141個字節的數據,並在標題中添加時間戳。我看到這個鏈接Python和Windows將TCP時間戳添加到標頭
How to set the tcp option timestamp while building a tcp SYN packet using python?
,但我將與Windows 7一起工作,我不知道從何處着手。
我是一個真正的py和TCP新手,但我需要發送18到141個字節的數據,並在標題中添加時間戳。我看到這個鏈接Python和Windows將TCP時間戳添加到標頭
How to set the tcp option timestamp while building a tcp SYN packet using python?
,但我將與Windows 7一起工作,我不知道從何處着手。
如果您只是想打開TCP時間戳,那是Windows下的TCP選項。看看這個:http://technet.microsoft.com/en-us/library/cc938205.aspx?ppud=4
在註冊表中設置Tcp1323Opts爲2,重新啓動並在所有傳出連接上打開時間戳(假設另一側也支持它們)。
但你爲什麼要那樣?您無法訪問應用程序中的時間戳,它們僅用於幫助具有長胖網絡和大型TCP窗口的TCP。