MySQL 5.6.14 Source Code Document
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
yassl.hpp
1
/*
2
Copyright (c) 2000, 2012, Oracle and/or its affiliates. All rights reserved.
3
4
This program is free software; you can redistribute it and/or modify
5
it under the terms of the GNU General Public License as published by
6
the Free Software Foundation; version 2 of the License.
7
8
This program is distributed in the hope that it will be useful,
9
but WITHOUT ANY WARRANTY; without even the implied warranty of
10
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
GNU General Public License for more details.
12
13
You should have received a copy of the GNU General Public License
14
along with this program; see the file COPYING. If not, write to the
15
Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
16
MA 02110-1301 USA.
17
*/
18
19
20
/* yaSSL externel header defines yaSSL API
21
*/
22
23
24
#ifndef yaSSL_EXT_HPP
25
#define yaSSL_EXT_HPP
26
27
28
namespace
yaSSL {
29
30
31
#ifdef _WIN32
32
typedef
unsigned
int
SOCKET_T;
33
#else
34
typedef
int
SOCKET_T;
35
#endif
36
37
38
class
Client
{
39
public
:
40
Client
();
41
~
Client
();
42
43
// basics
44
int
Connect(SOCKET_T);
45
int
Write(
const
void
*,
int
);
46
int
Read(
void
*,
int
);
47
48
// options
49
void
SetCA(
const
char
*);
50
void
SetCert(
const
char
*);
51
void
SetKey(
const
char
*);
52
private
:
53
struct
ClientImpl
;
54
ClientImpl
* pimpl_;
55
56
Client
(
const
Client
&);
// hide copy
57
Client
& operator=(
const
Client
&);
// and assign
58
};
59
60
61
class
Server
{
62
public
:
63
Server
();
64
~
Server
();
65
66
// basics
67
int
Accept(SOCKET_T);
68
int
Write(
const
void
*,
int
);
69
int
Read(
void
*,
int
);
70
71
// options
72
void
SetCA(
const
char
*);
73
void
SetCert(
const
char
*);
74
void
SetKey(
const
char
*);
75
private
:
76
struct
ServerImpl
;
77
ServerImpl
* pimpl_;
78
79
Server
(
const
Server
&);
// hide copy
80
Server
& operator=(
const
Server
&);
// and assign
81
};
82
83
84
}
// namespace yaSSL
85
#endif // yaSSL_EXT_HPP
extra
yassl
include
yassl.hpp
Generated on Sat Nov 9 2013 01:24:41 for MySQL 5.6.14 Source Code Document by
1.8.1.2