summaryrefslogtreecommitdiff
path: root/cpp/src/IceSSL/SslConnection.h
blob: b0aea426a6c278e5a7dae48fbb19e54a0f3e4350 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
// **********************************************************************
//
// Copyright (c) 2001
// Mutable Realms, Inc.
// Huntsville, AL, USA
//
// All Rights Reserved
//
// **********************************************************************

#ifndef ICE_SSL_CONNECTION_H
#define ICE_SSL_CONNECTION_H

#include <Ice/Buffer.h>
#include <Ice/LoggerF.h>
#include <IceSSL/SslConnectionF.h>
#include <IceSSL/TraceLevelsF.h>
#include <IceSSL/CertificateVerifierF.h>

namespace IceSSL
{

class Connection : public IceUtil::Shared
{
public:

    Connection(const TraceLevelsPtr&,
               const Ice::LoggerPtr&,
               const CertificateVerifierPtr&);
    virtual ~Connection();

    virtual int shutdown(int timeout = 0) = 0;

    virtual int read(IceInternal::Buffer&, int) = 0;
    virtual int write(IceInternal::Buffer&, int) = 0;

protected:

    TraceLevelsPtr _traceLevels;
    Ice::LoggerPtr _logger;
    CertificateVerifierPtr _certificateVerifier;
};

}

#endif