Logo Search packages:      
Sourcecode: hammerhead version File versions  Download package

result.h

//
// $Id: result.h,v 1.2 2003/03/03 23:18:48 dredd Exp $
//
// $Source: /cvsroot/hammerhead/hammerhead/src/result.h,v $
// $Revision: 1.2 $
// $Date: 2003/03/03 23:18:48 $
// $State: Exp $
//
// Author: Geoff Wong
//

/*
 * Non-entity change
 */
#ifndef _RESULT_H
#define _RESULT_H

#include <time.h>
#include <list>
#include "String.h"

class Result
{
public:            
    int interrupted;
    // was the connection prematurely closed?

    int returnCode;
    // return code from server. Anything greater than 400 means error
    
    int timetaken;
    // time taken to fulfill the request

    int response;
    // time taken to get the first line of stuff

    int contentLength;
    // the claimed length of the reutrned content.
    // excludes protocol details

    int readLength;
    // the actual length of the content read from the socket.

    String serverUsed;
    // the server that serviced this request.

    time_t commenceTime;
    // time in seconds in which the request started. (Measured
    // from the StartTime.

    list<String> buffer;    
    // list of strings outputted 
};

#endif

Generated by  Doxygen 1.6.0   Back to index