亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? callscriptdriver.pl

?? 基于sipfoundy 公司開發(fā)的sipx協(xié)議API
?? PL
?? 第 1 頁 / 共 2 頁
字號:
#! /bin/perl# Driver for CallScript.# To get WNOHANG for waitpid.use POSIX ":sys_wait_h";# Initialize configuration.# Number of seconds to run before no longer starting any jobs.$time_limit = 24 * 60 * 60;     # 24 hours# Number of jobs to attempt to run.$job_limit = 1;# Assign SIP listening ports.$port_base = 10117;$port_increment = 10;# Assign RTP send/receive ports.$rtp_base = 29110;$rtp_increment = 10;# Name of subjob program.$CallScript_program = 'CallScript';# Do an effective 'pause random $randomize_time' at the start of each job.$randomize_time = 0;# Minimum time a subjob must wait to execute, so as to ensure that the parent# process has recorded it before its SIGCHLD comes in.$fork_sleep = 2;# Maximum times to try to select a script that is not already running.$script_select_tries = 1000;# 1 if a script should not be selected for a subjob if another subjob# is already running it.$no_duplicates = 0;# 1 if subjob N should always run script N.$nonrandom = 0;if ($ARGV[0] eq '-d') {    $debug = 1;    shift @ARGV;}# Process the arguments, which are either file names, commands, or# variable assignments..$errors_found = 0;%variables = ();for ($i = 0; $i <= $#ARGV; $i++) {    $arg = $ARGV[$i];    # We distinguish files from commands via a hueristic:  All    # commands start with a verb which does not contain "/" and contain    # a space.  All files can be put into a form which violates this    # rule:  relative file names can have "./" prepended, and absolute    # file names start with "/".  Few file names contain a space.    # Similarly, we distinguish variable assignments by having an "=" before    # a "/" or space.    if ($arg =~ m%^([^/ =]+)=(.*)$%) {        # Argument looks like a variable assignment        $variables{$1} = $2;    } elsif ($arg =~ m%^[^/ ]+ %) {        # Argument looks like a command.        # The user's argument 1 is $ARGV[0].        &process_command($arg, "argument ".($i+1));    } else {        # Read the contents of the control file.        open(C, $arg) ||            die "Error opening file '$arg' for input: $!\n";        while (<C>) {            &process_command($_, "$arg line $.");        }        close C;    }}die "$errors_found errors found in commands.\n" if $errors_found > 0;# Set up the list of scripts depending on whether 'nonrandom' was specified.if (!$nonrandom) {    # Set up "cut points" on a scale of 0 to 1, so that a uniform random number    # in that range will fall into interval $i with the probability that we    # should select script $i to run.    $total_weight = 0;    for ($i = 0; $i <= $#script_weights; $i++) {        $total_weight += $script_weights[$i];    }    die "Total weight is not positive: $total_weight\n" if $total_weight <= 0;    $cut_point = 0;    for ($i = 0; $i < $#script_weights; $i++) {        $cut_point += $script_weights[$i] / $total_weight;        push(@script_cuts, $cut_point);    }    # Set last cut point to exactly 1.    push(@script_cuts, 1.0);    if ($debug) {        print "\@script_files = \n";        for ($i = 0; $i <= $#script_files; $i++) {            print "\t$script_files[$i] ", join(' ', @{$script_args[$i]}),            "\n";        }        print "\@script_weights = ", join(' ', @script_weights), "\n";        print "\@script_cuts = ", join(' ', @script_cuts), "\n";    }} else {    # Duplicate each script according to its weight value.    my(@script_files_old, @script_args_old);    @script_files_old = @script_files;    @script_files = ();    @script_args_old = @script_args;    @script_args = ();    for ($i = 0; $i <= $#script_files_old; $i++) {        push(@script_files, ($script_files_old[$i]) x $script_weights[$i]);        push(@script_args, ($script_args_old[$i]) x $script_weights[$i]);    }    if ($debug) {        print "\@script_files = \n";        for ($i = 0; $i <= $#script_files; $i++) {            print "\t$script_files[$i] ", join(' ', @{$script_args[$i]}),            "\n";        }    }    # Ensure there are enough scripts for the number of jobs.    die "Number of jobs is $job_limit but total script weights is only ",        $#script_files + 1, ".\n"            if $job_limit > $#script_files + 1;}# Print the PID so the user can easily kill us.print STDERR "Process ID is $$\n";print STDERR "Started at ", `date`;# Run the subordinate scripts.$start_time = time;$end_time = $start_time + $time_limit;print "\$start_time = $start_time, \$end_time = $end_time\n" if $debug;# Initialize $jobs_running, which is maintained by &start_job and# &signal_handler_CHLD.$jobs_running = 0;# Initialize the array of which scripts each job is running.for ($i = 0; $i < $job_limit; $i++) {    $job_script_no[$i] = -1;}# Set up interrupt handler for SIGCHLD, which reaps the terminated# script and possibly starts another.$SIG{'CHLD'} = \&signal_handler_CHLD;# Set up interrupt handler for SIGHUP, which shuts down the run gracefully.$SIG{'HUP'} = \&signal_handler_HUP;# Set up interrupt handler for SIGQUIT, which shuts down the run# immediately, since it does not wait for the jobs to finish.$SIG{'QUIT'} = \&signal_handler_QUIT;$restart_jobs = 1;# Start a job for each slot.for ($i = 0; $i < $job_limit; $i++) {    &start_job($i);}# Wait until time is up.until (time >= $end_time) {    select(undef, undef, undef, $end_time - time);    print "time = ", time, ", \$end_time = $end_time, \$jobs_running = $jobs_running, remaining = ",          $end_time - time, "\n" if $debug;}print "Ending run after ", time - $start_time, " seconds at ", `date`;# Stop restarting jobs.$restart_jobs = 0;# Wait until all running jobs have exited.until ($jobs_running <= 0) {    select(undef, undef, undef, 1_000_000);    print "time = ", time, ", \$end_time = $end_time, \$jobs_running = $jobs_running\n" if $debug;}print "Done after ", time - $start_time, " seconds at ", `date`;# Print the summary.print "\n";print "No  Count  Script\n";$total = 0;for ($i = 0; $i <= $#script_counts; $i++) {    printf "%2d  %5d  %s\n", $i, $script_counts[$i], $script_files[$i];    $total += $script_counts[$i];}printf "    %5d  TOTAL\n", $total;exit 0;# Signal handler for SIGCHLD.sub signal_handler_CHLD {    my($child_pid, $i);    # Call wait() to get the PID of the child that died.    # Loop as sometimes the kernel does not deliver exactly as many    # SIGCHLDs as there are child processes.    while (($child_pid = waitpid(-1, WNOHANG)) > 0) {        print "\$child_pid = $child_pid\n" if $debug;        # Decrement count of jobs currently running.        $jobs_running--;        # Remove the job from the table.        $i = &reap_job($child_pid);        # Start a job to replace it if we should.        if ($restart_jobs) {            &start_job($i);        }    }}# Start a job in slot $slot.sub start_job {    my($slot) = @_;    my($r, $script_no, $x, $sip_port, $rtp_port, $random_time, $i, @command);    print "\&start_job($slot)\n" if $debug;    # Choose the randomization time in the parent process, so the    # children don't all choose the same time.    if ($randomize_time > 0) {        $random_time = int(rand() * $randomize_time / 1000);    }    # Determine which script to use.    # Record in $job_script_no[$slot] which script file number.    if (!$nonrandom) {        # Select a script randomly.      find_script: for ($tries = 0; $tries < $script_select_tries; $tries++) {          # Select a random number.          $r = rand();          # Look it up in the list of cut points.          for ($script_no = 0; $script_no <= $#script_weights; $script_no++) {              if ($r <= $script_cuts[$script_no]) {                  # $script_no is the script selected by the random number.

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
成人在线综合网| 国产精品免费av| 国产a精品视频| 亚洲欧美日韩一区二区| 精品国产污污免费网站入口| 色综合中文综合网| 亚洲电影中文字幕在线观看| 91精品免费观看| 99久久国产免费看| 麻豆中文一区二区| 亚洲一区二区偷拍精品| 精品sm在线观看| 色噜噜狠狠成人中文综合| 精品一区二区免费| 亚洲老妇xxxxxx| 国产精品福利一区二区| 91精品国产综合久久福利| 成人免费毛片嘿嘿连载视频| 国内一区二区在线| 婷婷综合在线观看| 亚洲午夜久久久久久久久电影院| 日韩午夜激情免费电影| 不卡视频一二三| 风间由美一区二区三区在线观看 | 国产老女人精品毛片久久| 亚洲国产一二三| 久久蜜桃香蕉精品一区二区三区| 欧美巨大另类极品videosbest| 粉嫩13p一区二区三区| 理论片日本一区| 一区二区三区欧美视频| 国产精品久久久久桃色tv| 久久综合久久综合亚洲| 欧美va亚洲va国产综合| 在线不卡免费av| 色婷婷亚洲一区二区三区| 成人精品一区二区三区四区| 久久国产日韩欧美精品| 精品一二线国产| 日韩高清在线一区| 日本亚洲一区二区| 亚洲永久精品大片| 亚洲成人免费电影| 亚洲欧美成aⅴ人在线观看| 亚洲激情欧美激情| 亚洲男人的天堂av| 亚洲精品中文在线观看| 中文字幕五月欧美| 亚洲国产精品黑人久久久| 国产精品网曝门| 国产日韩欧美电影| 亚洲三级免费电影| 亚洲婷婷在线视频| 亚洲电影激情视频网站| 一区二区欧美国产| 免费欧美在线视频| 日韩成人一级片| 亚洲国产视频一区二区| 一区二区三区成人在线视频| 亚洲欧美日韩国产中文在线| 亚洲成年人影院| 日日夜夜免费精品| 国内精品视频666| 国产精品一区在线观看乱码| 成人午夜av在线| 97精品久久久久中文字幕| 欧美精三区欧美精三区| 欧美日本视频在线| 精品久久久久久久久久久久包黑料| 欧美大片在线观看| 久久伊人中文字幕| 亚洲精品中文在线影院| 亚洲国产精品一区二区www| 久久www免费人成看片高清| 国产一区二区三区在线观看免费| av午夜一区麻豆| 欧美探花视频资源| xnxx国产精品| 国产精品国产成人国产三级| 亚洲欧美电影一区二区| 美腿丝袜亚洲色图| 国产乱码精品1区2区3区| 一本久久精品一区二区| 欧美日韩国产影片| 中文字幕精品在线不卡| 自拍偷拍亚洲综合| 日韩专区中文字幕一区二区| 麻豆精品一区二区av白丝在线| 国产精品综合视频| 91视频你懂的| 欧美美女一区二区在线观看| 精品国产乱码久久久久久影片| 欧美激情一区二区三区| 日韩vs国产vs欧美| 国产激情一区二区三区四区| 欧美日韩电影在线播放| 国产丝袜欧美中文另类| 香蕉乱码成人久久天堂爱免费| 婷婷国产在线综合| 免费观看日韩电影| 国产毛片精品视频| 亚洲国产精品欧美一二99| 国产呦萝稀缺另类资源| 91香蕉视频污| 国产亚洲精品超碰| 夜夜亚洲天天久久| 爽好久久久欧美精品| 欧美福利一区二区| 麻豆视频观看网址久久| 91精品福利视频| 久久天堂av综合合色蜜桃网| 午夜欧美电影在线观看| 不卡影院免费观看| 国产日产欧美一区| 亚洲成a人在线观看| 久久国产精品99精品国产| 91精彩视频在线观看| 亚洲精品一线二线三线| 美女mm1313爽爽久久久蜜臀| 色先锋aa成人| 综合久久综合久久| 久久精品99国产国产精| 92国产精品观看| 中文字幕在线观看一区| 精品无人码麻豆乱码1区2区 | 精品国产一区二区三区av性色| 天堂在线亚洲视频| 91福利社在线观看| 久久久久久久网| 国产美女精品一区二区三区| 日韩一区二区在线看| 亚洲国产一二三| 91色porny| 在线看国产日韩| aaa亚洲精品一二三区| av动漫一区二区| 成人午夜电影久久影院| 亚洲欧美在线aaa| 久久成人羞羞网站| 日韩激情视频网站| 337p日本欧洲亚洲大胆色噜噜| av一区二区三区四区| 蜜臂av日日欢夜夜爽一区| 亚洲成a人v欧美综合天堂下载| 精品国产精品一区二区夜夜嗨| 99精品视频免费在线观看| 婷婷综合在线观看| 免费高清在线一区| 中文字幕综合网| 在线免费观看日本欧美| 麻豆一区二区三区| 26uuu亚洲| 成人一级视频在线观看| 一区二区三区**美女毛片| 在线日韩av片| 精品无人码麻豆乱码1区2区| 欧美不卡视频一区| 韩国成人精品a∨在线观看| 99久久er热在这里只有精品66| 国产精品久久久久久福利一牛影视| 欧美视频在线一区二区三区| 日本aⅴ精品一区二区三区| 综合中文字幕亚洲| 欧美日韩不卡一区二区| 国产91精品精华液一区二区三区| 一区二区三区 在线观看视频| 欧美日韩一区二区三区四区五区| 国产成人免费视| 亚洲国产一二三| 亚洲色图清纯唯美| 日韩精品自拍偷拍| 欧美三级电影网| 国产伦精品一区二区三区免费迷| 亚洲国产精品久久人人爱| 久久―日本道色综合久久| 777久久久精品| 91亚洲精华国产精华精华液| 国产精品综合av一区二区国产馆| 国产精品福利影院| 久久久影视传媒| 欧美日韩一区久久| 色综合色狠狠天天综合色| 亚洲成人精品影院| 中文字幕一区二区三区乱码在线| 欧美日韩一区高清| 欧美综合天天夜夜久久| 激情综合五月天| 麻豆免费精品视频| 亚洲免费观看高清完整版在线 | 91精品国产91久久综合桃花| 成人永久免费视频| 老司机精品视频线观看86| 亚洲高清免费一级二级三级| 中文字幕的久久| 日韩精品一区在线| 99国产一区二区三精品乱码| 国产麻豆成人精品| 日韩电影免费一区| 亚洲sss视频在线视频| 亚洲自拍与偷拍|