ZeusBase-Library
2.0.4
|
#include <PeerProvider.h>
Public Member Functions | |
TPeerProvider (Uint uiListeningPort) | |
TPeerProvider (const TString &rListeningAddress, Uint uiListeningPort) | |
void | setStartDelay (const Float &rfDelay) |
void | setTimeout (const Float &rfTimeout) |
void | setDataToProvide (const TByteArray &rData) |
virtual bool | signalizeStop (Float64 dTimeOut=5.0) |
Public Member Functions inherited from zeus::TThread | |
TThread (EPriority ePriority=etNormal) | |
TThread (IRunnable &rObj, EPriority ePriority=etNormal) | |
EPriority | getPriority () const |
void | setPriority (EPriority ePriority) |
virtual void | kill (Float64 dTimeOut=0) |
virtual bool | isAlive () const |
virtual bool | isDead () const |
virtual void | resume () |
virtual bool | start () |
virtual void | suspend () |
virtual bool | yield () |
virtual Retval | postObject (ISynchronizeObject &rObject, bool bWaitForCompletion) |
virtual bool MQUALIFIER | isInterrupted () const |
virtual Uint MQUALIFIER | getThreadID () const |
virtual Retval MQUALIFIER | askForInterface (const InterfaceID &rInterfaceID, IZUnknown *&rpIface) |
virtual void MQUALIFIER | addRef () const |
virtual void MQUALIFIER | release () const |
Public Member Functions inherited from zeus::TZObject | |
TZObject () | |
TZObject (const TString &strName) | |
TZObject (const IString &strName) | |
Uint | getHash () const |
TString | toString () const |
virtual TString | getObjName () const |
virtual void | setObjName (const TString &name) |
Protected Member Functions | |
virtual | ~TPeerProvider () |
virtual void | execute () |
Protected Member Functions inherited from zeus::TThread | |
virtual | ~TThread () |
virtual void | onTerminated () |
virtual void | onStarted () |
Protected Member Functions inherited from zeus::TZObject | |
virtual | ~TZObject () |
TZObject (const TZObject &rObject) | |
TZObject & | operator= (const TZObject &rObject) |
Int | getRefCounter () const |
Additional Inherited Members | |
Public Types inherited from zeus::TThread | |
enum | EPriority { etNormal = 0, etLow = 1, etHigh = 2, etLower = 3, etHigher = 4, etTimeCritical = 5 } |
Static Public Member Functions inherited from zeus::TThread | |
static void | sleep (const Float &rfDelay) |
Protected Attributes inherited from zeus::TThread | |
bool | m_bInterrupted |
Flag to check if the thread should terminate. More... | |
TThreadMessageQueue & | m_rQueue |
Message queue of the thread. More... | |
Protected Attributes inherited from zeus::TZObject | |
Uint | m_uiID |
The peer provider is used to provide an IP address to a peer searcher. The IP address might be used
TPeerProvider::TPeerProvider | ( | Uint | uiListeningPort | ) |
Creates a peer provider
TPeerProvider::TPeerProvider | ( | const TString & | rListeningAddress, |
Uint | uiListeningPort | ||
) |
Creates a peer provider
|
protectedvirtual |
Destroys the peer provider
|
protectedvirtual |
Reimplemented from zeus::TThread.
void TPeerProvider::setDataToProvide | ( | const TByteArray & | rData | ) |
sets some data to send back to the peer searching object
|
inline |
sets the start up delay
|
inline |
sets the timeout
|
virtual |
Reimplemented from zeus::TThread.