MASA-Core
Public Member Functions | Private Attributes
SocketBuffer Class Reference

Detailed Description

Definition at line 29 of file SocketBuffer.hpp.

#include <SocketBuffer.hpp>

Inheritance diagram for SocketBuffer:
Buffer CellsReader CellsWriter

List of all members.

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

Constructor & Destructor Documentation

SocketBuffer::SocketBuffer ( string  hostname,
int  port 
)

Definition at line 32 of file SocketBuffer.cpp.

Definition at line 39 of file SocketBuffer.cpp.


Member Function Documentation

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.


Member Data Documentation

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.


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