#include <HandshakeSession.h> [code]
Inherits QObject.
Inheritance diagram for Gnutella::Handshaking::HandshakeSession:


Definition at line 60 of file HandshakeSession.h.
Signals | |
| void | connectionEstablished (HandshakeSession *) |
| void | receivedRequest (HandshakeSession *) |
| void | receivedResponse (HandshakeSession *) |
| void | handshakingCompleted (HandshakeSession *) |
| void | handshakingFailed (HandshakeSession *) |
Public Member Functions | |
| HandshakeSession (Connection *, const NodeAddress &, Handshaker *, NodeCache *) | |
| ~HandshakeSession () | |
| void | request (const NodeInfo &myNodeInfo) |
| void | waitRequest () |
| void | respond (const NodeInfo &myNodeInfo) |
| void | waitResponse () |
| void | acknowledge (const NodeInfo &myNodeInfo) |
| void | waitAcknowledgement () |
| void | reject (RejectReason, const NodeInfo &myNodeInfo) |
| NodeInfo | otherNodeInfo () const |
| NodeInfo | myNodeInfo () const |
| Connection * | connection () const |
| HandshakeError | error () const |
Private Types | |
| enum | State { UnknownState, WaitingPhase1Handshake, SendingPhase1Handshake, WaitingPhase2Handshake, SendingPhase2Handshake, WaitingPhase3Handshake, SendingPhase3Handshake, RejectingConnection, HandshakingTimedOut, HandshakingFailed, HandshakingCompleted } |
Private Slots | |
| void | connectionEstablished () |
| void | connectionFailed () |
| void | connectionClosed () |
| The underlying connection was closed. Clear connection data. | |
| void | handshakeRead () |
| The underlying HandshakeReader parsed a header. | |
| void | handshakeWritten () |
| The underlying HandshakeWriter wrote a header. | |
| void | readError () |
| The underlying HandshakeReader failed to parse a header. | |
| void | writeError () |
| The underlying HandhsakeWriter failed to write a header. | |
| void | timeout () |
| A timeout elapsed before the handshaking could be completed. | |
Private Member Functions | |
| void | completed () |
| void | failed (HandshakeError) |
| void | sendResponse (RejectReason, const NodeInfo &) |
| void | setHandshakeHeaders (Header &handshakeHeaders, const NodeInfo &myNodeInfo) |
| void | getHandshakeHeaders (const Header &handshakeHeaders) |
Private Attributes | |
| Data | d |
Classes | |
| struct | Data |
|
|
Definition at line 101 of file HandshakeSession.h. |
|
||||||||||||||||||||
|
Definition at line 63 of file HandshakeSession.cpp. |
|
|
Definition at line 102 of file HandshakeSession.cpp. |
|
|
Definition at line 211 of file HandshakeSession.cpp. |
|
|
The address will be null if we never read the Listen-IP header from a node, which contacted us => nothing to update! It might be null if we contacted the node, but the Listen-IP header it returned overwote the address we contacted. In this case we should still mark the old address as not available.
Definition at line 118 of file HandshakeSession.cpp. |
|
|
Definition at line 153 of file HandshakeSession.h. |
|
|
The underlying connection was closed. Clear connection data.
Definition at line 305 of file HandshakeSession.cpp. |
|
|
Definition at line 292 of file HandshakeSession.cpp. |
|
|
|
|
|
Definition at line 298 of file HandshakeSession.cpp. |
|
|
Definition at line 156 of file HandshakeSession.h. |
|
|
Definition at line 140 of file HandshakeSession.cpp. |
|
|
Definition at line 393 of file HandshakeSession.cpp. |
|
|
The underlying HandshakeReader parsed a header.
Definition at line 223 of file HandshakeSession.cpp. |
|
|
The underlying HandshakeWriter wrote a header.
Definition at line 257 of file HandshakeSession.cpp. |
|
|
|
|
|
|
|
|
Definition at line 147 of file HandshakeSession.h. |
|
|
Definition at line 150 of file HandshakeSession.h. |
|
|
The underlying HandshakeReader failed to parse a header.
Definition at line 251 of file HandshakeSession.cpp. |
|
|
|
|
|
|
|
||||||||||||
|
Definition at line 217 of file HandshakeSession.cpp. |
|
|
Definition at line 165 of file HandshakeSession.cpp. |
|
|
Definition at line 193 of file HandshakeSession.cpp. |
|
||||||||||||
|
Definition at line 183 of file HandshakeSession.cpp. |
|
||||||||||||
|
Definition at line 327 of file HandshakeSession.cpp. |
|
|
A timeout elapsed before the handshaking could be completed.
Definition at line 321 of file HandshakeSession.cpp. |
|
|
Definition at line 205 of file HandshakeSession.cpp. |
|
|
Definition at line 176 of file HandshakeSession.cpp. |
|
|
Definition at line 199 of file HandshakeSession.cpp. |
|
|
The underlying HandhsakeWriter failed to write a header.
Definition at line 286 of file HandshakeSession.cpp. |
|
|
Definition at line 144 of file HandshakeSession.h. |