Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members | Related Pages | Examples

P::IORequest Class Reference
[Transparent Network I/O library]

Network I/O Request. More...

#include <piorequest.h>

Inheritance diagram for P::IORequest:

P::IORequest_Get P::IORequest_ListDir P::IORequest_MakeDir P::IORequest_Put P::IORequest_RemoveDir P::IORequest_Unlink List of all members.

Public Types

enum  state_t {
  Initial, Open, Transfer, Finished,
  Failed
}
 Current state of the request. More...


Public Member Functions

 IORequest (IOHandler *handler, const URL &url)
 Constructor.

virtual ~IORequest ()
IOHandlerhandler () const throw ()
 Returns a pointer to the IOHandler.

const URLurl () const throw ()
 Returns the URL addressed with this request.

state_t state () const throw ()
 Returns the state of the request.


Protected Member Functions

void setState (state_t s) throw ()

Friends

class IOManager
class IOHandler

Detailed Description

Network I/O Request.

The base class for Network I/O requests. You may not need to use this class directly.

See also:
IORequest_Get IORequest_Put IORequest_Unlink IORequest_MakeDir IORequest_RemoveDir IORequest_ListDir

Definition at line 45 of file piorequest.h.


Member Enumeration Documentation

enum P::IORequest::state_t
 

Current state of the request.

Enumeration values:
Initial  Initial
Open  Connection is open
Transfer  Transfer in progress
Finished  Request is finihed
Failed  Request has failed

Definition at line 49 of file piorequest.h.


Constructor & Destructor Documentation

P::IORequest::IORequest IOHandler handler,
const URL url
 

Constructor.

Constructs the IORequest object.

Parameters:
handler Pointer to an IOHandler object
url URL for the request

virtual P::IORequest::~IORequest  )  [virtual]
 


Member Function Documentation

IOHandler* P::IORequest::handler  )  const throw () [inline]
 

Returns a pointer to the IOHandler.

Definition at line 70 of file piorequest.h.

void P::IORequest::setState state_t  s  )  throw () [inline, protected]
 

Definition at line 82 of file piorequest.h.

state_t P::IORequest::state  )  const throw () [inline]
 

Returns the state of the request.

Definition at line 78 of file piorequest.h.

const URL& P::IORequest::url  )  const throw () [inline]
 

Returns the URL addressed with this request.

Definition at line 74 of file piorequest.h.


Friends And Related Function Documentation

friend class IOHandler [friend]
 

Definition at line 58 of file piorequest.h.

friend class IOManager [friend]
 

Definition at line 57 of file piorequest.h.


The documentation for this class was generated from the following file:
Generated on Fri Mar 12 21:08:34 2004 for P::Classes by doxygen 1.3.3