void cl_disconnect()

in client.c [87:100]


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

    packet_t* packet = NULL;

    comm_send_command(pipe, DISCONNECT, NULL, 0, RC4_KEY, RC4_KEY_LENGTH);

    packet = comm_receive_packet(pipe);
    cl_print_packet(packet);

    if (packet)
        free(packet);
}