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

terimber_aiofile_callback Class Reference

#include <aiofilefactory.h>

List of all members.

Public Member Functions

virtual ~terimber_aiofile_callback ()
 destructor
virtual void v_on_error (size_t handle, int err, aiofile_type type, void *userdata)=0
 port will call function after error occured
virtual void v_on_write (size_t handle, void *buf, size_t requested, size_t processed, void *userdata)=0
 port will call function after successfully sending buffer to file
virtual void v_on_read (size_t handle, void *buf, size_t requested, size_t processed, void *userdata)=0
 port will call function after successfully receiving buffer from file


Detailed Description

Definition at line 44 of file aiofilefactory.h.


Constructor & Destructor Documentation

virtual terimber_aiofile_callback::~terimber_aiofile_callback (  )  [inline, virtual]

destructor

Definition at line 49 of file aiofilefactory.h.


Member Function Documentation

virtual void terimber_aiofile_callback::v_on_error ( size_t  handle,
int  err,
aiofile_type  type,
void *  userdata 
) [pure virtual]

port will call function after error occured

Parameters:
handle  file ident
err  error code
type  action type
userdata  user defined data

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

virtual void terimber_aiofile_callback::v_on_write ( size_t  handle,
void *  buf,
size_t  requested,
size_t  processed,
void *  userdata 
) [pure virtual]

port will call function after successfully sending buffer to file

Parameters:
handle  file ident
buf  buffer
requested  requested bytes to write
processed  actual bytes processed
userdata  user defined data

Referenced by aiofile::v_do_job().

virtual void terimber_aiofile_callback::v_on_read ( size_t  handle,
void *  buf,
size_t  requested,
size_t  processed,
void *  userdata 
) [pure virtual]

port will call function after successfully receiving buffer from file

Parameters:
handle  file ident
buf  buffer
requested  requested bytes to read
processed  actual bytes processed
userdata  user defined data

Referenced by aiofile::v_do_job().


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


© Copyright Terimber 2003-.