class Akenti::IOHandlerImpl

This class wraps a file descriptor and provides methods to get information about the descriptor and to read and write from the descriptor

Inheritance:


Public Methods

[more] IOHandlerImpl (int fd)
Constructs this object.
[more] ~IOHandlerImpl ()
Destroys this object
[more]int getDescriptor () const
Gets the descriptor.
[more]bool isOpen () const
Determines if the descriptor is open
[more]bool isClosed () const
To check if the file descriptor is closed.
[more]int read (char* buf, int num)
To read from the descriptor, a specified number of bytes into buffer.
[more]int write (const char* buf, int num)
To write to the descriptor, a specified number of bytes from the buffer.
[more]int close ()
Closes the descriptor.
[more]string paramString () const
Returns a string representation for IOHandler which is used debugging purposes.


Inherited from AbstractIOHandlerImpl:


Documentation

This class wraps a file descriptor and provides methods to get information about the descriptor and to read and write from the descriptor
o IOHandlerImpl(int fd)
Constructs this object.

Parameters:
fd - the file descriptor

o ~IOHandlerImpl()
Destroys this object

oint getDescriptor() const
Gets the descriptor.

Returns:
the descriptor

obool isOpen() const
Determines if the descriptor is open

Returns:
an indication if descriptor is open or not

obool isClosed() const
To check if the file descriptor is closed.

Returns:
indicates that the file descriptor is closed

oint read(char* buf, int num)
To read from the descriptor, a specified number of bytes into buffer.

Parameters:
buf - the buffer to read into
num - specified number of bytes
Returns:
the actual bytes being read

oint write(const char* buf, int num)
To write to the descriptor, a specified number of bytes from the buffer.

Parameters:
buf - the buffer to write from
num - specified number of bytes to write
Returns:
the actual bytes being written

oint close()
Closes the descriptor.

Returns:
status after being closed

ostring paramString() const
Returns a string representation for IOHandler which is used debugging purposes.

Returns:
debugging info


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.