StreamHandler class. More...
#include <StreamHandler.hpp>
Public Member Functions | |
virtual void | associateFileDescriptorWithStreamReader (int fileDescriptor, shared_ptr< StreamReader > streamReader) |
Associate a file descriptor with a StreamReader. | |
virtual void | associateFileDescriptorWithStreamWriter (int fileDescriptor, shared_ptr< StreamWriter > streamWriter) |
Associate a file descriptor with a StreamWriter. | |
virtual void | closeStreamReader (int fileDescriptor) |
Close the StreamReader associated with this file descriptor. | |
virtual void | closeStreamWriter (int fileDescriptor) |
Close the StreamWriter associated with this file descriptor. | |
virtual shared_ptr< StreamWriter > | getAssociatedStreamWriter (int fileDescriptor) |
Get the StreamWriter associated with a given file descriptor. | |
virtual void | handle_read_stream (const ACE_Asynch_Read_Stream::Result &result) |
Handles read operations events. | |
virtual void | handle_write_stream (const ACE_Asynch_Write_Stream::Result &result) |
Handles write operations events. | |
virtual | ~StreamHandler () |
Destructor. | |
Protected Attributes | |
map< int, shared_ptr < StreamReader > > | streamReaderMap_ |
map< int, shared_ptr < StreamWriter > > | streamWriterMap_ |
StreamHandler class.
The class which handles the events from ACE_Proactor
Definition at line 48 of file StreamHandler.hpp.
StreamHandler::~StreamHandler | ( | ) | [virtual] |
Destructor.
Definition at line 36 of file StreamHandler.cpp.
void StreamHandler::associateFileDescriptorWithStreamReader | ( | int | fileDescriptor, | |
shared_ptr< StreamReader > | streamReader | |||
) | [virtual] |
Associate a file descriptor with a StreamReader.
fileDescriptor | File descriptor to be associated | |
streamReader | StreamReader to be associated |
Definition at line 41 of file StreamHandler.cpp.
void StreamHandler::associateFileDescriptorWithStreamWriter | ( | int | fileDescriptor, | |
shared_ptr< StreamWriter > | streamWriter | |||
) | [virtual] |
Associate a file descriptor with a StreamWriter.
fileDescriptor | File descriptor to be associated | |
streamWriter | StreamWriter to be associated |
Definition at line 46 of file StreamHandler.cpp.
void StreamHandler::closeStreamReader | ( | int | fileDescriptor | ) | [virtual] |
Close the StreamReader associated with this file descriptor.
fileDescriptor | The file descriptor which is associated with the StreamReader to be closed |
Definition at line 106 of file StreamHandler.cpp.
void StreamHandler::closeStreamWriter | ( | int | fileDescriptor | ) | [virtual] |
Close the StreamWriter associated with this file descriptor.
fileDescriptor | The file descriptor which is associated with the StreamWriter to be closed |
Definition at line 112 of file StreamHandler.cpp.
shared_ptr< StreamWriter > StreamHandler::getAssociatedStreamWriter | ( | int | fileDescriptor | ) | [virtual] |
Get the StreamWriter associated with a given file descriptor.
fileDescriptor | The file descriptor which is associated with a StreamWriter |
Definition at line 100 of file StreamHandler.cpp.
void StreamHandler::handle_read_stream | ( | const ACE_Asynch_Read_Stream::Result & | result | ) | [virtual] |
Handles read operations events.
result | The result of an io operation |
Definition at line 51 of file StreamHandler.cpp.
void StreamHandler::handle_write_stream | ( | const ACE_Asynch_Write_Stream::Result & | result | ) | [virtual] |
Handles write operations events.
result | The result of an io operation |
Definition at line 74 of file StreamHandler.cpp.