Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

MPNL::MTransfer Class Reference

MTransfer is a one way stream transfer but using both a server and a client to iniatiate the transfer. Once one of them has etabished a connection, the other just sit.
Todo: More...

#include <MPNLBase.h>

Inheritance diagram for MPNL::MTransfer:

MThread List of all members.

Public Types

typedef std::deque< MUpdate * > MUpdateList

Public Member Functions

 MTransfer ()
 ~MTransfer ()
void Stop (void)
 Stop (Cancel) the thread. Disk file is kept.

MTransferDirection GetDirection ()
void SetDirection (MTransferDirection dir)
bool IsPending ()
void SetPending (bool b)
void AddUpdate (MUpdate *u)
MUpdateListLockUpdates ()
void UnlockUpdates ()
int NbUpdates ()
std::string Mode2String ()
std::string Dir2String ()
void Disconnected ()
void EraseUpdate (MUpdateList::iterator &ite)
void operator() ()
 Thread function. Do not call, use Start().


Public Attributes

MTransferMode Mode
std::string PeerIP
std::string LocalPath
std::string MD5
std::string URL
int Port
int ID
 TODO: ID is for identifying a client. Server will refuse any clients with not the same ID.

bool Dead

Friends

class MTransferManager

Detailed Description

MTransfer is a one way stream transfer but using both a server and a client to iniatiate the transfer. Once one of them has etabished a connection, the other just sit.
Todo:


Member Typedef Documentation

typedef std::deque<MUpdate*> MPNL::MTransfer::MUpdateList
 


Constructor & Destructor Documentation

MPNL::MTransfer::MTransfer  ) 
 

MPNL::MTransfer::~MTransfer  ) 
 


Member Function Documentation

void MPNL::MTransfer::AddUpdate MUpdate u  )  [inline]
 

std::string MPNL::MTransfer::Dir2String  )  [inline]
 

void MPNL::MTransfer::Disconnected  )  [inline]
 

void MPNL::MTransfer::EraseUpdate MUpdateList::iterator &  ite  ) 
 

MTransferDirection MPNL::MTransfer::GetDirection  )  [inline]
 

bool MPNL::MTransfer::IsPending  )  [inline]
 

MUpdateList* MPNL::MTransfer::LockUpdates  )  [inline]
 

std::string MPNL::MTransfer::Mode2String  )  [inline]
 

int MPNL::MTransfer::NbUpdates  )  [inline]
 

void MPNL::MTransfer::operator()  )  [virtual]
 

Thread function. Do not call, use Start().

Implements MThread.

void MPNL::MTransfer::SetDirection MTransferDirection  dir  )  [inline]
 

void MPNL::MTransfer::SetPending bool  b  )  [inline]
 

void MPNL::MTransfer::Stop void   )  [virtual]
 

Stop (Cancel) the thread. Disk file is kept.

Reimplemented from MThread.

void MPNL::MTransfer::UnlockUpdates  )  [inline]
 


Friends And Related Function Documentation

friend class MTransferManager [friend]
 


Member Data Documentation

bool MPNL::MTransfer::Dead
 

int MPNL::MTransfer::ID
 

TODO: ID is for identifying a client. Server will refuse any clients with not the same ID.

std::string MPNL::MTransfer::LocalPath
 

std::string MPNL::MTransfer::MD5
 

MTransferMode MPNL::MTransfer::Mode
 

std::string MPNL::MTransfer::PeerIP
 

int MPNL::MTransfer::Port
 

std::string MPNL::MTransfer::URL
 


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


MDFS SourceForge project page and download

SourceForge.net Logo

Generated on Sat Jan 3 03:14:20 2004 for MDFS by doxygen1.3.5