1 /* 2 * Copyright 2015, Haiku, Inc. All Rights Reserved. 3 * Distributed under the terms of the MIT License. 4 */ 5 #ifndef _PROXY_SECURE_SOCKET_H 6 #define _PROXY_SECURE_SOCKET_H 7 8 9 #include <SecureSocket.h> 10 11 12 class BProxySecureSocket : public BSecureSocket { 13 public: 14 BProxySecureSocket(const BNetworkAddress& proxy); 15 BProxySecureSocket(const BNetworkAddress& proxy, 16 const BNetworkAddress& peer, 17 bigtime_t timeout = B_INFINITE_TIMEOUT); 18 BProxySecureSocket(const BProxySecureSocket& other); 19 virtual ~BProxySecureSocket(); 20 21 // BSocket implementation 22 23 virtual status_t Connect(const BNetworkAddress& peer, 24 bigtime_t timeout = B_INFINITE_TIMEOUT); 25 26 private: 27 const BNetworkAddress fProxyAddress; 28 }; 29 30 31 #endif // _PROXY_SECURE_SOCKET_H 32 33