#include <MPNLBase.h>
Inheritance diagram for MPNL::MTransfer:

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) |
| MUpdateList * | LockUpdates () |
| 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 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Thread function. Do not call, use Start().
Implements MThread. |
|
|
|
|
|
|
|
|
Stop (Cancel) the thread. Disk file is kept.
Reimplemented from MThread. |
|
|
|
|
|
|
|
|
|
|
|
TODO: ID is for identifying a client. Server will refuse any clients with not the same ID.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1.3.5