|
Nuria Framework - Network
Network module of the NuriaProject Framework
|
Abstract data transport for HttpClient. More...
#include <httptransport.hpp>
Public Types | |
| enum | Type { Unknown = 0, TCP = 1, SSL = 2, Memory = 3, Custom = 4 } |
Public Slots | |
| virtual bool | flush () |
| virtual void | forceClose () |
Public Member Functions | |
| HttpTransport (QObject *parent=0) | |
| ~HttpTransport () | |
| virtual Type | type () const |
| virtual bool | isSecure () const |
| virtual QHostAddress | localAddress () const |
| virtual quint16 | localPort () const |
| virtual QHostAddress | peerAddress () const |
| virtual quint16 | peerPort () const |
Abstract data transport for HttpClient.
A transport is responsible to receive and send to and from a HTTP client through a specific connection. The connection can be anything which can be represented as HttpTransport, e.g. TCP, SSL or a QBuffer (memory buffer).
|
explicit |
Constructor.
| Nuria::HttpTransport::~HttpTransport | ( | ) |
Destructor.
|
virtualslot |
Instructs the underlying transport to send any pending data to the client now. The default implementation always returns true.
|
virtualslot |
Closes the underlying transport immediately, discarding any data in the send buffer (If one exists). The default implementation simply calls close().
|
virtual |
Returns true if the connection is somehow protected against external eavesdropping, e.g. through encryption. The default implementation returns false.
Reimplemented in Nuria::HttpTcpTransport.
|
virtual |
Returns the local address to which the peer is connected. The default implementation returns QHostAddress::Null.
Reimplemented in Nuria::HttpTcpTransport.
|
virtual |
Returns the local port to which the peer is connected. The default implementation returns 0.
Reimplemented in Nuria::HttpTcpTransport.
|
virtual |
Returns the address of the connected peer. The default implementation returns QHostAddress::Null.
Reimplemented in Nuria::HttpTcpTransport.
|
virtual |
Returns the port of the connected peer. The default implementation returns 0.
Reimplemented in Nuria::HttpTcpTransport.
|
virtual |
Returns the type of the transport. The default implementation returns Custom.
Reimplemented in Nuria::HttpTcpTransport.
1.8.7