#include <Session.h> [code]
Inherits Protocols::Generics::TransportStatus.
Inheritance diagram for Protocols::BitTorrent::Transfers::Session:


Definition at line 48 of file Session.h.
Public Member Functions | |
| Session (Transport &, SessionStatus &, const PeerInfo &localPeerInfo) | |
| ~Session () | |
| void | establish (const PeerInfo &remotePeerInfo, const FileId &fileId) |
| void | waitRequest () |
| void | accept () |
Private Types | |
| enum | State { DisconnectedTransport, EstablishingSession, AwaitingRequest, AwaitingAccept, ExchangingPackets } |
Private Member Functions | |
| void | connected () |
| void | readyRead () |
| void | readyWrite () |
| void | disconnected () |
| bool | readHandshake () |
| Tries to read the handshake of the remote peer. | |
| void | writeHandshake () |
| Writes our handshake to the transport. | |
| void | readPacket () |
| void | writePacket () |
Private Attributes | |
| Transport & | transport |
| SessionStatus & | status |
| PeerInfo | localPeerInfo |
| PeerInfo | remotePeerInfo |
| FileId | fileId |
| State | state |
|
|
|
|
||||||||||||||||
|
Definition at line 48 of file Session.cpp. |
|
|
Definition at line 55 of file Session.cpp. |
|
|
Definition at line 83 of file Session.cpp. |
|
|
Definition at line 92 of file Session.cpp. |
|
|
Definition at line 131 of file Session.cpp. |
|
||||||||||||
|
Definition at line 59 of file Session.cpp. |
|
|
Tries to read the handshake of the remote peer.
Definition at line 146 of file Session.cpp. |
|
|
Definition at line 190 of file Session.cpp. |
|
|
Definition at line 97 of file Session.cpp. |
|
|
Definition at line 127 of file Session.cpp. |
|
|
Definition at line 73 of file Session.cpp. |
|
|
Writes our handshake to the transport.
Definition at line 170 of file Session.cpp. |
|
|
Definition at line 205 of file Session.cpp. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|