17 #ifndef NURIA_HTTPTRANSPORT_HPP
18 #define NURIA_HTTPTRANSPORT_HPP
20 #include "network_global.hpp"
21 #include <QHostAddress>
26 class HttpTransportPrivate;
62 MaxRequestsDefault = 10,
65 DefaultConnectTimeout = 2000,
68 DefaultDataTimeout = 5000,
71 DefaultKeepAliveTimeout = 30000,
129 virtual Type type ()
const;
136 virtual bool isSecure ()
const;
142 virtual QHostAddress localAddress ()
const;
148 virtual quint16 localPort ()
const;
154 virtual QHostAddress peerAddress ()
const;
160 virtual quint16 peerPort ()
const;
163 virtual bool isOpen ()
const = 0;
166 int currentRequestCount ()
const;
172 int maxRequests ()
const;
175 void setMaxRequests (
int count);
181 int timeout (Timeout which);
184 void setTimeout (Timeout which,
int msec);
203 virtual void forceClose () = 0;
211 virtual void init ();
216 void connectionLost ();
219 void timeoutChanged (Timeout timeout,
int msec);
226 void setCurrentRequestCount (
int count);
236 virtual bool sendToRemote (
HttpClient *client,
const QByteArray &data) = 0;
244 void readFromRemote (
HttpClient *client, QByteArray &data);
250 void bytesSent (
HttpClient *client, qint64 bytes);
262 HttpTransportPrivate *d_ptr;
269 #endif // NURIA_HTTPTRANSPORT_HPP
Timeout
Definition: httptransport.hpp:98
Type
Definition: httptransport.hpp:76
Definition: abstractsessionmanager.hpp:24
Abstract data transport for HttpClient.
Definition: httptransport.hpp:53
Server for the HyperText Transfer Protocol.
Definition: httpserver.hpp:71
Base class for HttpServer back-ends.
Definition: httpbackend.hpp:34
The HttpClient class represents a connection to a client.
Definition: httpclient.hpp:118