|
MASA-Core
|
Definition at line 29 of file SocketBuffer.hpp.
#include <SocketBuffer.hpp>
Public Member Functions | |
| SocketBuffer (string hostname, int port) | |
| virtual | ~SocketBuffer () |
| virtual void | initAutoFlush () |
| virtual void | initAutoLoad () |
| virtual void | autoFlushThread () |
| virtual void | autoLoadThread () |
| virtual void | destroyAutoFlush () |
| This method is called prior to the auto-load thread destruction. | |
| virtual void | destroyAutoLoad () |
| This method is called prior to the auto-load thread destruction. | |
Private Attributes | |
| string | hostname |
| int | port |
| int | socketfd |
| SocketBuffer::SocketBuffer | ( | string | hostname, |
| int | port | ||
| ) |
Definition at line 32 of file SocketBuffer.cpp.
| SocketBuffer::~SocketBuffer | ( | ) | [virtual] |
Definition at line 39 of file SocketBuffer.cpp.
| void SocketBuffer::autoFlushThread | ( | ) | [virtual] |
Implements Buffer.
Definition at line 49 of file SocketBuffer.cpp.
| void SocketBuffer::autoLoadThread | ( | ) | [virtual] |
Implements Buffer.
Definition at line 72 of file SocketBuffer.cpp.
| void SocketBuffer::destroyAutoFlush | ( | ) | [virtual] |
This method is called prior to the auto-load thread destruction.
See the Buffer::destroyAutoLoad() method description.
Implements Buffer.
Definition at line 196 of file SocketBuffer.cpp.
| void SocketBuffer::destroyAutoLoad | ( | ) | [virtual] |
This method is called prior to the auto-load thread destruction.
For example, if the auto-load thread is waiting for a socket input, then the destroyAutoLoad must destroy the socket in order to wake the thread execution. Note that during and after this method is called, the Buffer::isDestroyed() method will always return true.
Implements Buffer.
Definition at line 135 of file SocketBuffer.cpp.
| void SocketBuffer::initAutoFlush | ( | ) | [virtual] |
Implements Buffer.
Definition at line 139 of file SocketBuffer.cpp.
| void SocketBuffer::initAutoLoad | ( | ) | [virtual] |
Implements Buffer.
Definition at line 93 of file SocketBuffer.cpp.
string SocketBuffer::hostname [private] |
Definition at line 45 of file SocketBuffer.hpp.
int SocketBuffer::port [private] |
Definition at line 46 of file SocketBuffer.hpp.
int SocketBuffer::socketfd [private] |
Definition at line 47 of file SocketBuffer.hpp.
1.7.6.1