Thread portable class


Gate portable class


Timer class


Pool class


Terimber 2.0


About C++


Downloads Products & Services Support Clients Open Source About



Home / Open source / Terimber 2.0

aiofile_block Class Reference

defines the asynchronous control block for WIN platform More...

#include <aiofile.h>

List of all members.

Public Member Functions

 aiofile_block ()
 default constructor
 aiofile_block (const aiofile_block &x)
 copy constructor
aiofile_blockoperator= (const aiofile_block &x)
 assign operator
void clear ()
 clears resources
void set_timeout (size_t timeout)
 sets timeout and expiration date

Public Attributes

aiofile_type _type
 action type
char * _buf
 buffer send/receive
size_t _len
 buffer length
size_t _file_ident
 file ident
size_t _processed
 processed data size
int _err
 error result
void * _userdata
 user defined data
size_t _timeout
 timeout in milliseconds
sb8_t _expired
 expiration date


Detailed Description

defines the asynchronous control block for WIN platform

Definition at line 46 of file aiofile.h.


Constructor & Destructor Documentation

aiofile_block::aiofile_block (  ) 

default constructor

Definition at line 93 of file aiofile.cpp.

References clear().

aiofile_block::aiofile_block ( const aiofile_block x  ) 

copy constructor

Definition at line 98 of file aiofile.cpp.


Member Function Documentation

aiofile_block & aiofile_block::operator= ( const aiofile_block x  ) 

assign operator

Definition at line 104 of file aiofile.cpp.

void aiofile_block::clear (  ) 

clears resources

Definition at line 115 of file aiofile.cpp.

Referenced by aiofile_block().

void aiofile_block::set_timeout ( size_t  timeout  ) 

sets timeout and expiration date

Parameters:
timeout  timeout in milliseconds

Definition at line 121 of file aiofile.cpp.

References _expired, and _timeout.

Referenced by aiofile::read(), and aiofile::write().


Member Data Documentation

buffer send/receive

Definition at line 66 of file aiofile.h.

Referenced by aiofile::_process_read(), aiofile::_process_write(), aiofile::read(), aiofile::v_do_job(), and aiofile::write().

user defined data

Definition at line 71 of file aiofile.h.

Referenced by aiofile::process_timeouted_blocks(), aiofile::read(), aiofile::v_do_job(), and aiofile::write().

timeout in milliseconds

Definition at line 77 of file aiofile.h.

Referenced by set_timeout().


The documentation for this class was generated from the following files:


© Copyright Terimber 2003-.