Client.Client Class
The underlying code for the election client: this is where all the work gets done. User actions through the user interface get resolved into calls to this class, and it calls user interface (ClientDisplay) methods to display results. The client communicates with the server over a single connection.

Access: Public
Base Classes: Object
  Members Description  
    server    
    port    
    client    
    bf    
    Client Constructor. Parses XML file for the server's IP addr and port

 
    displayCandidates Function called by GUI after the user enters the name of the election. This is where the client makes TCP connection with the server, and sends a request for user-specified election.

 
    vote Function called by the GUI after the user selects one of the candidates. Creates a new message with the election name and candidate selection, and sends the vote request to the server