#include <Connection.h> [code]
Inherits QIODevice.
Inherited by Protocols::Transports::TcpConnection, and Protocols::Transports::UdpConnection.
Inheritance diagram for Protocols::Transports::Connection:


Definition at line 36 of file Connection.h.
Public Types | |
| enum | State { DisconnectedState, ResolvingHostNameState, ConnectingState, ConnectedState, TimeoutState, DisconnectingState } |
Signals | |
| void | connectionFailed () |
| void | connectionEstablished () |
| void | connectionClosed () |
Public Member Functions | |
| Connection () | |
| virtual | ~Connection () |
| void | connectToNode (NodeAddress) |
| void | disconnectFromNode () |
| State | state () const |
| NodeAddress | remoteNodeAddress () const |
| bool | isSequential () const |
Protected Member Functions | |
| void | setState (State) |
| void | setRemoteNodeAddress (const NodeAddress &) |
| virtual void | doConnectToNode (const NodeAddress &)=0 |
| virtual void | doDisconnectFromNode ()=0 |
| virtual qint64 | readData (char *data, qint64 maxSize)=0 |
| virtual qint64 | writeData (const char *data, qint64 maxSize)=0 |
Private Slots | |
| void | lookupFinished (QHostInfo) |
Private Member Functions | |
| Connection (const Connection &) | |
| Connection & | operator= (const Connection &) |
Private Attributes | |
| auto_ptr< ConnectionPrivate > | p |
|
|
Definition at line 41 of file Connection.h. |
|
|
Definition at line 58 of file Connection.cpp. |
|
|
Definition at line 63 of file Connection.cpp. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Definition at line 68 of file Connection.cpp. |
|
|
Definition at line 104 of file Connection.cpp. |
|
|
Implemented in Protocols::Transports::TcpConnection, and Protocols::Transports::UdpConnection. |
|
|
Implemented in Protocols::Transports::TcpConnection, and Protocols::Transports::UdpConnection. |
|
|
Definition at line 110 of file Connection.cpp. |
|
|
Definition at line 86 of file Connection.cpp. |
|
|
|
|
||||||||||||
|
Implemented in Protocols::Transports::TcpConnection, and Protocols::Transports::UdpConnection. |
|
|
Definition at line 49 of file Connection.cpp. |
|
|
Definition at line 55 of file Connection.cpp. |
|
|
Definition at line 52 of file Connection.cpp. |
|
|
Definition at line 46 of file Connection.cpp. |
|
||||||||||||
|
Implemented in Protocols::Transports::TcpConnection, and Protocols::Transports::UdpConnection. |
|
|
Reimplemented in Protocols::Transports::UdpConnection. Definition at line 87 of file Connection.h. |