#include <orconnevent.h>
Public Types | |
| enum | Status { Unknown, Launched, Built, Extended, Failed, Closed, Disconnected, Connecting, Connected, Unknown, New, Launched, Connected, Failed, Closed, Unknown, New, NewResolve, SentConnect, SentResolve, Succeeded, Failed, Closed, Detached } |
Public Member Functions | |
| OrConnEvent (Status status, QString server) | |
| Status | status () |
| QString | server () |
Static Public Member Functions | |
| static Status | toStatus (QString status) |
Private Attributes | |
| Status | _status |
| QString | _server |
Definition at line 34 of file orconnevent.h.
| enum OrConnEvent::Status |
OR connection status
| Unknown | Unknown circuit status |
| Launched | Circuit ID assigned to new circuit |
| Built | All hops finished |
| Extended | Circuit extended by one hop |
| Failed | Circuit closed (was not built) |
| Closed | Circuit closed (was built) |
| Disconnected | Control connection disconnected. |
| Connecting | Control connection attempt pending. |
| Connected | Control connection established. |
| Unknown | Unknown OR status. |
| New | Incoming connection. |
| Launched | Outgoing connection. |
| Connected | TLS handshake finished. |
| Failed | Connection closed before handshake completed. |
| Closed | Connection closed that had previously handshaked. |
| Unknown | Unknown status type given |
| New | New request to connect |
| NewResolve | New request to resolve an address |
| SentConnect | Sent a connect cell |
| SentResolve | Sent a resolve cell |
| Succeeded | Stream established |
| Failed | Stream failed |
| Closed | Stream closed |
| Detached | Detached from circuit |
Definition at line 38 of file orconnevent.h.
| OrConnEvent::OrConnEvent | ( | Status | status, | |
| QString | server | |||
| ) |
| OrConnEvent::Status OrConnEvent::toStatus | ( | QString | status | ) | [static] |
Converts a string description of a connection's status to an enum value
Definition at line 45 of file orconnevent.cpp.
References Closed, Connected, Failed, Launched, New, and Unknown.
Referenced by TorEvents::handleOrConnStatus().
| OrConnEvent::Status OrConnEvent::status | ( | ) |
Returns the status for this OR connection.
Definition at line 67 of file orconnevent.cpp.
References _status.
| QString OrConnEvent::server | ( | ) |
Returns the OR server with which this connection is associated.
Definition at line 74 of file orconnevent.cpp.
References _server.
Status OrConnEvent::_status [private] |
OR connection status associated with this event.
Definition at line 60 of file orconnevent.h.
Referenced by OrConnEvent(), and status().
QString OrConnEvent::_server [private] |
1.5.0