Enable HTTPS connections.

Using more modern network classes:
 * BNetworkAddress instead of BNetAddress
 * BSocket and BSecureSocket instead of BNetEndpoint
This commit is contained in:
Niels Sascha Reedijk
2013-02-07 18:06:02 +00:00
committed by Hamish Morrison
parent d1b6afe678
commit 4e607e1aae
3 changed files with 64 additions and 43 deletions
+8 -4
View File
@@ -12,17 +12,21 @@
#include <HttpAuthentication.h>
#include <HttpForm.h>
#include <HttpHeaders.h>
#include <NetEndpoint.h>
#include <NetBuffer.h>
#include <NetworkAddress.h>
#include <UrlProtocol.h>
class BAbstractSocket;
class BUrlProtocolHttp : public BUrlProtocol {
public:
BUrlProtocolHttp(BUrl& url,
BUrlProtocolHttp(BUrl& url, bool ssl = false,
BUrlProtocolListener* listener = NULL,
BUrlContext* context = NULL,
BUrlResult* result = NULL);
virtual ~BUrlProtocolHttp();
virtual status_t SetOption(uint32 option, void* value);
@@ -56,8 +60,8 @@ private:
private:
BNetEndpoint fSocket;
BNetAddress fRemoteAddr;
BAbstractSocket* fSocket;
BNetworkAddress fRemoteAddr;
int8 fRequestMethod;
int8 fHttpVersion;