3 - 출력 테스트 파라미터 - printConfigure

Please indicate the source: http://blog.csdn.net/gaoxiangnumber1
Welcome to my github: https://github.com/gaoxiangnumber1
  • webtest 작업 의 세 번 째 단 계 는 출력 테스트 매개 변수 이 고 대응 함수 void PrintConfigure(char **argv) 입 니 다.사용자 가 입력 한 options 출력 에 대응 하 는 configuration 은 사용자 에 게 알림 을 주 는 것 과 같 습 니 다.전체 원본 코드:
  • void PrintConfigure(char **argv) // Step 3. Print this test's configure information.
    {
        // Testing: <method> <url> <version>
    // With <clients> <time> <force> <proxy> <reload> printf("Testing: "); switch(method) { default: case METHOD_GET: printf("GET"); break; case METHOD_OPTIONS: printf("OPTIONS"); break; case METHOD_HEAD: printf("HEAD"); break; case METHOD_TRACE: printf("TRACE"); break; } printf(" %s using HTTP/1.1
    "
    , argv[optind]); printf("With %d client(s), running %d second(s)", clients, test_time); if(force) { printf(", early socket close"); } if(proxy_host) { printf(", via proxy server %s:%d", proxy_host, proxy_port); if(force_reload) // Only with proxy server, use reload is useful. { printf(", forcing reload"); } } printf(".
    "
    ); }

    Please indicate the source: http://blog.csdn.net/gaoxiangnumber1
    Welcome to my github: https://github.com/gaoxiangnumber1

    좋은 웹페이지 즐겨찾기