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