void cl_tcp_connectivity_check()

in client.c [696:716]


void cl_tcp_connectivity_check(HANDLE pipe, const char* target, uint32_t pid)
{
    char ip[IP_SIZE] = { 0 };
    char port_string[PORT_SIZE] = { 0 };
    network_info_t net = { 0 };
    packet_t* packet = NULL;

    h_get_user_string("Enter in IP for TCP Socket connectivity check: ", ip, IP_SIZE);
    h_get_user_string("Enter in IP for TCP Socket connectivity check: ", port_string, PORT_SIZE);

    net.port = (uint16_t)atoi(port_string);
    strcpy_s(net.ip, IP_SIZE, ip);

    comm_send_command(pipe, TCP_CONNECTIVITY_CHECK, (uint8_t*)&net,
        sizeof(network_info_t), RC4_KEY, RC4_KEY_LENGTH);

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

    free(packet);
}