資源簡介
iperf移植到vs2010de工程,參考了http://download.csdn.net/detail/onlyforyou/4985129的資源,解決了編譯錯誤的問題。下載后請用vs2010打開工程文件,先右鍵選擇clean清除之前編譯的資料再編譯即可。

代碼片段和文件信息
/*---------------------------------------------------------------?
?*?Copyright?(c)?19992000200120022003??????????????????????????????
?*?The?Board?of?Trustees?of?the?University?of?Illinois????????????
?*?All?Rights?Reserved.???????????????????????????????????????????
?*---------------------------------------------------------------?
?*?Permission?is?hereby?granted?free?of?charge?to?any?person????
?*?obtaining?a?copy?of?this?software?(Iperf)?and?associated???????
?*?documentation?files?(the?“Software“)?to?deal?in?the?Software??
?*?without?restriction?including?without?limitation?the??????????
?*?rights?to?use?copy?modify?merge?publish?distribute????????
?*?sublicense?and/or?sell?copies?of?the?Software?and?to?permit?????
?*?persons?to?whom?the?Software?is?furnished?to?do
?*?so?subject?to?the?following?conditions:?
?*
?*?????
?*?Redistributions?of?source?code?must?retain?the?above?
?*?copyright?notice?this?list?of?conditions?and?
?*?the?following?disclaimers.?
?*
?*?????
?*?Redistributions?in?binary?form?must?reproduce?the?above?
?*?copyright?notice?this?list?of?conditions?and?the?following?
?*?disclaimers?in?the?documentation?and/or?other?materials?
?*?provided?with?the?distribution.?
?*?
?*?????
?*?Neither?the?names?of?the?University?of?Illinois?NCSA?
?*?nor?the?names?of?its?contributors?may?be?used?to?endorse?
?*?or?promote?products?derived?from?this?Software?without
?*?specific?prior?written?permission.?
?*?
?*?THE?SOFTWARE?IS?PROVIDED?“AS?IS“?WITHOUT?WARRANTY?OF?ANY?KIND?
?*?EXPRESS?OR?IMPLIED?INCLUDING?BUT?NOT?LIMITED?TO?THE?WARRANTIES?
?*?OF?MERCHANTABILITY?FITNESS?FOR?A?PARTICULAR?PURPOSE?AND?
?*?NONINFRINGEMENT.?IN?NO?EVENT?SHALL?THE?CONTIBUTORS?OR?COPYRIGHT?
?*?HOLDERS?BE?LIABLE?FOR?ANY?CLAIM?DAMAGES?OR?OTHER?LIABILITY?
?*?WHETHER?IN?AN?ACTION?OF?CONTRACT?TORT?OR?OTHERWISE?
?*?ARISING?FROM?OUT?OF?OR?IN?CONNECTION?WITH?THE
?*?SOFTWARE?OR?THE?USE?OR?OTHER?DEALINGS?IN?THE?SOFTWARE.?
?*?________________________________________________________________
?*?National?Laboratory?for?Applied?Network?Research?
?*?National?Center?for?Supercomputing?Applications?
?*?University?of?Illinois?at?Urbana-Champaign?
?*?http://www.ncsa.uiuc.edu
?*?________________________________________________________________?
?*
?*?delay.c
?*?by?Mark?Gates?
?*?-------------------------------------------------------------------
?*?accurate?microsecond?delay
?*?-------------------------------------------------------------------?*/
#include?“Timestamp.hpp“
#include?“util.h“
#include?“delay.hpp“
#include?“pthread_clock.h“
/*?-------------------------------------------------------------------
?*?A?micro-second?delay?function?using?POSIX?nanosleep().?This?allows?a
?*?higher?timing?resolution?(under?Linux?e.g.?it?uses?hrtimers)?does?not
?*?affect?any?signals?and?will?use?up?remaining?time?when?interrupted.
?*?-------------------------------------------------------------------?*/
void?delay_loop(unsigned?long?usec)
{
????struct?ti
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件??????31120??2010-04-11?03:23??iperf-2.0.5\aclocal.m4
?????文件????????815??2008-05-10?11:18??iperf-2.0.5\AUTHORS
?????文件????????467??2007-08-30?05:57??iperf-2.0.5\autogen.sh
?????文件???????3328??2010-07-09?12:28??iperf-2.0.5\ChangeLog
?????文件??????????8??2013-01-11?09:11??iperf-2.0.5\compat\.deps\delay.Po
?????文件??????????8??2013-01-11?09:11??iperf-2.0.5\compat\.deps\error.Po
?????文件??????????8??2013-01-11?09:11??iperf-2.0.5\compat\.deps\gettimeofday.Po
?????文件??????????8??2013-01-11?09:11??iperf-2.0.5\compat\.deps\inet_ntop.Po
?????文件??????????8??2013-01-11?09:11??iperf-2.0.5\compat\.deps\inet_pton.Po
?????文件??????????8??2013-01-11?09:11??iperf-2.0.5\compat\.deps\signal.Po
?????文件??????????8??2013-01-11?09:11??iperf-2.0.5\compat\.deps\snprintf.Po
?????文件??????????8??2013-01-11?09:11??iperf-2.0.5\compat\.deps\string.Po
?????文件??????????8??2013-01-11?09:11??iperf-2.0.5\compat\.deps\Thread.Po
?????文件???????3297??2013-01-11?11:18??iperf-2.0.5\compat\delay.cpp
?????文件???????8477??2007-08-30?05:57??iperf-2.0.5\compat\error.c
?????文件???????3523??2007-08-30?05:57??iperf-2.0.5\compat\gettimeofday.c
?????文件???????1153??2007-08-30?06:07??iperf-2.0.5\compat\headers_slim.h
?????文件???????5356??2013-01-11?11:31??iperf-2.0.5\compat\inet_ntop.c
?????文件???????5711??2007-08-30?05:57??iperf-2.0.5\compat\inet_pton.c
?????文件??????13452??2013-01-11?09:11??iperf-2.0.5\compat\Makefile
?????文件????????421??2008-03-13?04:28??iperf-2.0.5\compat\Makefile.am
?????文件??????14486??2010-04-11?03:23??iperf-2.0.5\compat\Makefile.in
?????文件??????43084??2013-01-11?13:57??iperf-2.0.5\compat\setitimer.cpp
?????文件???????7130??2013-01-11?12:47??iperf-2.0.5\compat\signal.c
?????文件???????3534??2007-08-30?05:57??iperf-2.0.5\compat\snprintf.c
?????文件???????3023??2007-08-30?05:57??iperf-2.0.5\compat\string.c
?????文件??????15210??2010-03-31?07:08??iperf-2.0.5\compat\Thread.c
?????文件??????43610??2007-08-30?06:07??iperf-2.0.5\config.guess
?????文件???????7989??2013-01-11?09:11??iperf-2.0.5\config.h
?????文件???????7434??2010-04-11?03:23??iperf-2.0.5\config.h.in
............此處省略190個文件信息
評論
共有 條評論