#ifndef GLOBAL_DECL

#include "global.h"     // Global data types and variables

#endif


// Function to download the page file (containing categories and URLs) from the server

bool Download_Page_File(config* settings)
{
    wsock connection(settings); // Create instance of wsock object


    // Check for errors opening a connection

    if ( connection.error[0] != NULL )
        return false;

    // Retrieve latest version of page list file from server

    if ( !connection.get_page( SERVER_ADDR, "pagelist.txt" ) )
        return false;

    return true;
}

syntax highlighted by Code2HTML, v. 0.8.11