Subversion Repositories tpanel

Rev

Rev 93 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 93 Rev 94
Line 39... Line 39...
39
        bool close();
39
        bool close();
40
        bool isConnected() { return mConnected; }
40
        bool isConnected() { return mConnected; }
41
        std::string& getMyIP() { return mMyIP; }
41
        std::string& getMyIP() { return mMyIP; }
42
        int retrieveSSLerror(int rcode) { return SSL_get_error(mSsl, rcode); }
42
        int retrieveSSLerror(int rcode) { return SSL_get_error(mSsl, rcode); }
43
 
43
 
-
 
44
        static const size_t npos = static_cast<size_t>(-1);
-
 
45
 
44
    protected:
46
    protected:
45
        struct addrinfo *lookup_host (const std::string& host, int port);
47
        struct addrinfo *lookup_host (const std::string& host, int port);
46
        void initSSL();
48
        void initSSL();
47
        SSL_CTX *initCTX();
49
        SSL_CTX *initCTX();
48
        void log_ssl_error();
50
        void log_ssl_error();