void cl_http_connectivity_check()

in client.c [213:231]


void cl_http_connectivity_check(HANDLE pipe, const char* target, uint32_t pid)
{
    assert(INVALID_HANDLE_VALUE != pipe);

    wchar_t domain[MAX_SIZE / 2] = { 0 };
    packet_t* packet = NULL;

    h_get_wide_user_string(L"Enter domain for HTTP GET Request connectivity check: ", domain, MAX_SIZE / 2);

    comm_send_command(pipe, HTTP_CONNECTIVITY_CHECK, (uint8_t*)domain,
        (uint32_t)((wcslen(domain) + 1) * 2), RC4_KEY,
        RC4_KEY_LENGTH);

    packet = comm_receive_packet(pipe);
    cl_print_connectivity(packet);

    if (packet)
        free(packet);
}