Subversion Repositories tpanel

Rev

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

Rev 112 Rev 117
Line 38... Line 38...
38
        size_t send(char *buffer, size_t size);
38
        size_t send(char *buffer, size_t size);
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
        int getSocket() { return mSockfd; }
43
 
44
 
44
        static const size_t npos = static_cast<size_t>(-1);
45
        static const size_t npos = static_cast<size_t>(-1);
45
 
46
 
46
    protected:
47
    protected:
47
        struct addrinfo *lookup_host (const std::string& host, int port);
48
        struct addrinfo *lookup_host (const std::string& host, int port);