|
Nuria Framework - Network
Network module of the NuriaProject Framework
|
HttpClient transport for TCP with or without SSL connections. More...
#include <httptcptransport.hpp>
Public Slots | |
| bool | flush () override |
| void | forceClose () override |
Public Slots inherited from Nuria::HttpTransport | |
| virtual bool | flush () |
| virtual void | forceClose () |
Public Member Functions | |
| HttpTcpTransport (QTcpSocket *socket, QObject *parent=0) | |
| ~HttpTcpTransport () override | |
| Type | type () const override |
| bool | isSecure () const override |
| QHostAddress | localAddress () const override |
| quint16 | localPort () const override |
| QHostAddress | peerAddress () const override |
| quint16 | peerPort () const override |
| bool | isSequential () const override |
| bool | open (OpenMode mode) override |
| void | close () override |
| qint64 | pos () const override |
| qint64 | size () const override |
| bool | seek (qint64 pos) override |
| bool | atEnd () const override |
| bool | reset () override |
| qint64 | bytesAvailable () const override |
| qint64 | bytesToWrite () const override |
| bool | canReadLine () const override |
| bool | waitForReadyRead (int msecs) override |
| bool | waitForBytesWritten (int msecs) override |
Public Member Functions inherited from Nuria::HttpTransport | |
| HttpTransport (QObject *parent=0) | |
| ~HttpTransport () | |
Protected Member Functions | |
| qint64 | readData (char *data, qint64 maxlen) override |
| qint64 | readLineData (char *data, qint64 maxlen) override |
| qint64 | writeData (const char *data, qint64 len) override |
Additional Inherited Members | |
Public Types inherited from Nuria::HttpTransport | |
| enum | Type { Unknown = 0, TCP = 1, SSL = 2, Memory = 3, Custom = 4 } |
HttpClient transport for TCP with or without SSL connections.
|
explicit |
Constructor.
|
override |
Destructor.
|
overridevirtual |
Returns true if the connection is somehow protected against external eavesdropping, e.g. through encryption. The default implementation returns false.
Reimplemented from Nuria::HttpTransport.
|
overridevirtual |
Returns the local address to which the peer is connected. The default implementation returns QHostAddress::Null.
Reimplemented from Nuria::HttpTransport.
|
overridevirtual |
Returns the local port to which the peer is connected. The default implementation returns 0.
Reimplemented from Nuria::HttpTransport.
|
overridevirtual |
Returns the address of the connected peer. The default implementation returns QHostAddress::Null.
Reimplemented from Nuria::HttpTransport.
|
overridevirtual |
Returns the port of the connected peer. The default implementation returns 0.
Reimplemented from Nuria::HttpTransport.
|
overridevirtual |
Returns the type of the transport. The default implementation returns Custom.
Reimplemented from Nuria::HttpTransport.
1.8.7