DataSink Class Reference
<class description="" goes="" here=""> <short description=""> More...
#include <DataSink.hpp>
Public Member Functions | |
DataSink (u32 id, IO *out, const char *address, int port=0, Adaptor *adaptor=NULL) | |
ideally address should be a stringPresentation of the form "127.0.0.1". | |
const char * | getAddress () const |
IO * | getOutput () const |
int | getPort () const |
bool | send (Frame *frm) |
inserts the frame into the sendqueue of the client. | |
bool | close (bool immediate=false) |
closes the output, sends buffered frames if | |
Adaptor * | getAdaptor () |
u32 | getDataSinkId () const |
void | pauseOutput () |
void | muteOutput () |
void | playOutput (double prefetch) |
Protected Attributes | |
char * | adr |
u32 | clientId |
use the binary ip address | |
IO * | output |
int | port |
list< Frame * > | sendQueue |
Adaptor * | localAdaptor |
a client can have a local Adaptor/-Chain that adapts the result from the global common Adaptor (in DataChannel) to its specific needs | |
Frame * | lastFrm |
Detailed Description
<class description="" goes="" here=""> <short description="">
- Author:
- Michael Kropfberger and Peter Schojer
- Version:
- Id
- DataSink.hpp,v 1.4 2006/01/20 15:37:17 mkropfbe Exp
Definition at line 63 of file DataSink.hpp.
Constructor & Destructor Documentation
|
ideally address should be a stringPresentation of the form "127.0.0.1". If the address is a name ("hurra.itec.uni-klu.ac.at"), a dns lookup has to be performed. FIXME: implement this lookup
References clientId, and localAdaptor.
|
Member Function Documentation
|
closes the output, sends buffered frames if
References IO::close(), Adaptor::close(), localAdaptor, and IO::writeFrame().
|
|
inserts the frame into the sendqueue of the client. blocking the local adaptor is called and then the result is sent Do not forget to delete the input-frm :-)Definition at line 92 of file DataSink.cpp. References Adaptor::adapt(), Adaptor::getName(), IO::getState(), localAdaptor, IO::open(), and IO::writeFrame(). Referenced by DataChannel::run().
|
The documentation for this class was generated from the following files: