File: Poco.Net.SecureStreamSocketImpl.html

package info (click to toggle)
poco-doc 1.3.6-1
  • links: PTS
  • area: main
  • in suites: buster, jessie, jessie-kfreebsd, squeeze, stretch, wheezy
  • size: 10,076 kB
  • ctags: 9,611
  • sloc: makefile: 31
file content (239 lines) | stat: -rw-r--r-- 29,444 bytes parent folder | download | duplicates (2)
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Class Poco::Net::SecureStreamSocketImpl</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
<meta name="author" content="Applied Informatics Software Engineering GmbH and Contributors"/>
<meta name="publisher" content="Applied Informatics Software Engineering GmbH and Contributors"/>
<meta name="copyright" content="Copyright (c) 2009, Applied Informatics Software Engineering GmbH and Contributors"/>
<meta name="language" content="en"/>
<meta name="date" content="2009-11-24"/>
<meta name="generator" content="PocoDoc"/>
<link rel="stylesheet" href="css/styles.css" type="text/css"/>
</head>
<body bgcolor="#ffffff" leftmargin="0" topmargin="0">
<div class="header">
<h1 class="namespace"><a href="Poco.Net.html" class="namespace">Poco::Net</a></h1>
<h1 class="symbol">class SecureStreamSocketImpl</h1>
</div>
<div class="body">
<p>
<b>Library:</b> NetSSL_OpenSSL<br />
<b>Package:</b> SSLSockets<br />
<b>Header:</b> Poco/Net/SecureStreamSocketImpl.h</p>
<h2>Description</h2>
<div class="description">
<p>This class implements a SSL stream socket. </p>
</div>
<h2>Inheritance</h2>
<p><b>Direct Base Classes: </b><a href="Poco.Net.StreamSocketImpl.html" title="class Poco::Net::StreamSocketImpl">StreamSocketImpl</a></p>
<p><b>All Base Classes: </b><a href="Poco.Net.SocketImpl.html" title="class Poco::Net::SocketImpl">SocketImpl</a>, <a href="Poco.Net.StreamSocketImpl.html" title="class Poco::Net::StreamSocketImpl">StreamSocketImpl</a>, <a href="Poco.RefCountedObject.html" title="class Poco::RefCountedObject">Poco::RefCountedObject</a></p>
<h2>Member Summary</h2>
<p><b>Member Functions: </b><a href="Poco.Net.SecureStreamSocketImpl.html#16200" title="Poco::Net::SecureStreamSocketImpl::acceptConnection()">acceptConnection</a>, <a href="Poco.Net.SecureStreamSocketImpl.html#16250" title="Poco::Net::SecureStreamSocketImpl::acceptSSL()">acceptSSL</a>, <a href="Poco.Net.SecureStreamSocketImpl.html#16209" title="Poco::Net::SecureStreamSocketImpl::bind()">bind</a>, <a href="Poco.Net.SecureStreamSocketImpl.html#16214" title="Poco::Net::SecureStreamSocketImpl::close()">close</a>, <a href="Poco.Net.SecureStreamSocketImpl.html#16249" title="Poco::Net::SecureStreamSocketImpl::completeHandshake()">completeHandshake</a>, <a href="Poco.Net.SecureStreamSocketImpl.html#16202" title="Poco::Net::SecureStreamSocketImpl::connect()">connect</a>, <a href="Poco.Net.SecureStreamSocketImpl.html#16207" title="Poco::Net::SecureStreamSocketImpl::connectNB()">connectNB</a>, <a href="Poco.Net.SecureStreamSocketImpl.html#16251" title="Poco::Net::SecureStreamSocketImpl::connectSSL()">connectSSL</a>, <a href="Poco.Net.SecureStreamSocketImpl.html#16242" title="Poco::Net::SecureStreamSocketImpl::context()">context</a>, <a href="Poco.Net.SecureStreamSocketImpl.html#16254" title="Poco::Net::SecureStreamSocketImpl::error()">error</a>, <a href="Poco.Net.SecureStreamSocketImpl.html#16245" title="Poco::Net::SecureStreamSocketImpl::getLazyHandshake()">getLazyHandshake</a>, <a href="Poco.Net.SecureStreamSocketImpl.html#16240" title="Poco::Net::SecureStreamSocketImpl::getPeerHostName()">getPeerHostName</a>, <a href="Poco.Net.SecureStreamSocketImpl.html#16253" title="Poco::Net::SecureStreamSocketImpl::lastError()">lastError</a>, <a href="Poco.Net.SecureStreamSocketImpl.html#16212" title="Poco::Net::SecureStreamSocketImpl::listen()">listen</a>, <a href="Poco.Net.SecureStreamSocketImpl.html#16241" title="Poco::Net::SecureStreamSocketImpl::peerCertificate()">peerCertificate</a>, <a href="Poco.Net.SecureStreamSocketImpl.html#16219" title="Poco::Net::SecureStreamSocketImpl::receiveBytes()">receiveBytes</a>, <a href="Poco.Net.SecureStreamSocketImpl.html#16228" title="Poco::Net::SecureStreamSocketImpl::receiveFrom()">receiveFrom</a>, <a href="Poco.Net.SecureStreamSocketImpl.html#16215" title="Poco::Net::SecureStreamSocketImpl::sendBytes()">sendBytes</a>, <a href="Poco.Net.SecureStreamSocketImpl.html#16223" title="Poco::Net::SecureStreamSocketImpl::sendTo()">sendTo</a>, <a href="Poco.Net.SecureStreamSocketImpl.html#16233" title="Poco::Net::SecureStreamSocketImpl::sendUrgent()">sendUrgent</a>, <a href="Poco.Net.SecureStreamSocketImpl.html#16243" title="Poco::Net::SecureStreamSocketImpl::setLazyHandshake()">setLazyHandshake</a>, <a href="Poco.Net.SecureStreamSocketImpl.html#16238" title="Poco::Net::SecureStreamSocketImpl::setPeerHostName()">setPeerHostName</a>, <a href="Poco.Net.SecureStreamSocketImpl.html#16237" title="Poco::Net::SecureStreamSocketImpl::shutdown()">shutdown</a>, <a href="Poco.Net.SecureStreamSocketImpl.html#16235" title="Poco::Net::SecureStreamSocketImpl::shutdownReceive()">shutdownReceive</a>, <a href="Poco.Net.SecureStreamSocketImpl.html#16236" title="Poco::Net::SecureStreamSocketImpl::shutdownSend()">shutdownSend</a>, <a href="Poco.Net.SecureStreamSocketImpl.html#16246" title="Poco::Net::SecureStreamSocketImpl::verifyPeerCertificate()">verifyPeerCertificate</a></p>
<p><b>Inherited Functions: </b><a href="Poco.Net.SocketImpl.html#15187" title="Poco::Net::SocketImpl::acceptConnection()">acceptConnection</a>, <a href="Poco.Net.SocketImpl.html#15241" title="Poco::Net::SocketImpl::address()">address</a>, <a href="Poco.Net.SocketImpl.html#15225" title="Poco::Net::SocketImpl::available()">available</a>, <a href="Poco.Net.SocketImpl.html#15196" title="Poco::Net::SocketImpl::bind()">bind</a>, <a href="Poco.Net.SocketImpl.html#15201" title="Poco::Net::SocketImpl::close()">close</a>, <a href="Poco.Net.SocketImpl.html#15189" title="Poco::Net::SocketImpl::connect()">connect</a>, <a href="Poco.Net.SocketImpl.html#15194" title="Poco::Net::SocketImpl::connectNB()">connectNB</a>, <a href="Poco.RefCountedObject.html#9659" title="Poco::RefCountedObject::duplicate()">duplicate</a>, <a href="Poco.Net.SocketImpl.html#15342" title="Poco::Net::SocketImpl::error()">error</a>, <a href="Poco.Net.SocketImpl.html#15319" title="Poco::Net::SocketImpl::getBlocking()">getBlocking</a>, <a href="Poco.Net.SocketImpl.html#15316" title="Poco::Net::SocketImpl::getBroadcast()">getBroadcast</a>, <a href="Poco.Net.SocketImpl.html#15304" title="Poco::Net::SocketImpl::getKeepAlive()">getKeepAlive</a>, <a href="Poco.Net.SocketImpl.html#15296" title="Poco::Net::SocketImpl::getLinger()">getLinger</a>, <a href="Poco.Net.SocketImpl.html#15301" title="Poco::Net::SocketImpl::getNoDelay()">getNoDelay</a>, <a href="Poco.Net.SocketImpl.html#15313" title="Poco::Net::SocketImpl::getOOBInline()">getOOBInline</a>, <a href="Poco.Net.SocketImpl.html#15268" title="Poco::Net::SocketImpl::getOption()">getOption</a>, <a href="Poco.Net.SocketImpl.html#15288" title="Poco::Net::SocketImpl::getRawOption()">getRawOption</a>, <a href="Poco.Net.SocketImpl.html#15234" title="Poco::Net::SocketImpl::getReceiveBufferSize()">getReceiveBufferSize</a>, <a href="Poco.Net.SocketImpl.html#15240" title="Poco::Net::SocketImpl::getReceiveTimeout()">getReceiveTimeout</a>, <a href="Poco.Net.SocketImpl.html#15307" title="Poco::Net::SocketImpl::getReuseAddress()">getReuseAddress</a>, <a href="Poco.Net.SocketImpl.html#15310" title="Poco::Net::SocketImpl::getReusePort()">getReusePort</a>, <a href="Poco.Net.SocketImpl.html#15231" title="Poco::Net::SocketImpl::getSendBufferSize()">getSendBufferSize</a>, <a href="Poco.Net.SocketImpl.html#15237" title="Poco::Net::SocketImpl::getSendTimeout()">getSendTimeout</a>, <a href="Poco.Net.SocketImpl.html#15333" title="Poco::Net::SocketImpl::init()">init</a>, <a href="Poco.Net.SocketImpl.html#15335" title="Poco::Net::SocketImpl::initSocket()">initSocket</a>, <a href="Poco.Net.SocketImpl.html#15328" title="Poco::Net::SocketImpl::initialized()">initialized</a>, <a href="Poco.Net.SocketImpl.html#15322" title="Poco::Net::SocketImpl::ioctl()">ioctl</a>, <a href="Poco.Net.SocketImpl.html#15341" title="Poco::Net::SocketImpl::lastError()">lastError</a>, <a href="Poco.Net.SocketImpl.html#15199" title="Poco::Net::SocketImpl::listen()">listen</a>, <a href="Poco.Net.SocketImpl.html#15242" title="Poco::Net::SocketImpl::peerAddress()">peerAddress</a>, <a href="Poco.Net.SocketImpl.html#15226" title="Poco::Net::SocketImpl::poll()">poll</a>, <a href="Poco.Net.SocketImpl.html#15209" title="Poco::Net::SocketImpl::receiveBytes()">receiveBytes</a>, <a href="Poco.Net.SocketImpl.html#15218" title="Poco::Net::SocketImpl::receiveFrom()">receiveFrom</a>, <a href="Poco.RefCountedObject.html#9661" title="Poco::RefCountedObject::referenceCount()">referenceCount</a>, <a href="Poco.RefCountedObject.html#9660" title="Poco::RefCountedObject::release()">release</a>, <a href="Poco.Net.SocketImpl.html#15339" title="Poco::Net::SocketImpl::reset()">reset</a>, <a href="Poco.Net.SocketImpl.html#15205" title="Poco::Net::SocketImpl::sendBytes()">sendBytes</a>, <a href="Poco.Net.SocketImpl.html#15213" title="Poco::Net::SocketImpl::sendTo()">sendTo</a>, <a href="Poco.Net.SocketImpl.html#15223" title="Poco::Net::SocketImpl::sendUrgent()">sendUrgent</a>, <a href="Poco.Net.SocketImpl.html#15317" title="Poco::Net::SocketImpl::setBlocking()">setBlocking</a>, <a href="Poco.Net.SocketImpl.html#15314" title="Poco::Net::SocketImpl::setBroadcast()">setBroadcast</a>, <a href="Poco.Net.SocketImpl.html#15302" title="Poco::Net::SocketImpl::setKeepAlive()">setKeepAlive</a>, <a href="Poco.Net.SocketImpl.html#15293" title="Poco::Net::SocketImpl::setLinger()">setLinger</a>, <a href="Poco.Net.SocketImpl.html#15299" title="Poco::Net::SocketImpl::setNoDelay()">setNoDelay</a>, <a href="Poco.Net.SocketImpl.html#15311" title="Poco::Net::SocketImpl::setOOBInline()">setOOBInline</a>, <a href="Poco.Net.SocketImpl.html#15243" title="Poco::Net::SocketImpl::setOption()">setOption</a>, <a href="Poco.Net.SocketImpl.html#15263" title="Poco::Net::SocketImpl::setRawOption()">setRawOption</a>, <a href="Poco.Net.SocketImpl.html#15232" title="Poco::Net::SocketImpl::setReceiveBufferSize()">setReceiveBufferSize</a>, <a href="Poco.Net.SocketImpl.html#15238" title="Poco::Net::SocketImpl::setReceiveTimeout()">setReceiveTimeout</a>, <a href="Poco.Net.SocketImpl.html#15305" title="Poco::Net::SocketImpl::setReuseAddress()">setReuseAddress</a>, <a href="Poco.Net.SocketImpl.html#15308" title="Poco::Net::SocketImpl::setReusePort()">setReusePort</a>, <a href="Poco.Net.SocketImpl.html#15229" title="Poco::Net::SocketImpl::setSendBufferSize()">setSendBufferSize</a>, <a href="Poco.Net.SocketImpl.html#15235" title="Poco::Net::SocketImpl::setSendTimeout()">setSendTimeout</a>, <a href="Poco.Net.SocketImpl.html#15204" title="Poco::Net::SocketImpl::shutdown()">shutdown</a>, <a href="Poco.Net.SocketImpl.html#15202" title="Poco::Net::SocketImpl::shutdownReceive()">shutdownReceive</a>, <a href="Poco.Net.SocketImpl.html#15203" title="Poco::Net::SocketImpl::shutdownSend()">shutdownSend</a>, <a href="Poco.Net.SocketImpl.html#15320" title="Poco::Net::SocketImpl::socketError()">socketError</a>, <a href="Poco.Net.SocketImpl.html#15321" title="Poco::Net::SocketImpl::sockfd()">sockfd</a></p>
<h2>Constructors</h2>
<h3><a name="16195">SecureStreamSocketImpl</a></h3>
<p class="decl"><a href="Poco.Net.SecureStreamSocketImpl.html" title="class Poco::Net::SecureStreamSocketImpl">SecureStreamSocketImpl</a>(<br />&nbsp;&nbsp;&nbsp;&nbsp;<a href="Poco.Net.Context.html#15711" title="Poco::Net::Context::Ptr">Context::Ptr</a> pContext<br />);</p>
<div class="description">
<p>Creates the <a href="Poco.Net.SecureStreamSocketImpl.html" title="class Poco::Net::SecureStreamSocketImpl">SecureStreamSocketImpl</a>. </p>
</div>
<h3><a name="16197">SecureStreamSocketImpl</a></h3>
<p class="decl"><a href="Poco.Net.SecureStreamSocketImpl.html" title="class Poco::Net::SecureStreamSocketImpl">SecureStreamSocketImpl</a>(<br />&nbsp;&nbsp;&nbsp;&nbsp;<a href="Poco.Net.StreamSocketImpl.html" title="class Poco::Net::StreamSocketImpl">StreamSocketImpl</a> * pStreamSocket,<br />&nbsp;&nbsp;&nbsp;&nbsp;<a href="Poco.Net.Context.html#15711" title="Poco::Net::Context::Ptr">Context::Ptr</a> pContext<br />);</p>
<div class="description">
<p>Creates the <a href="Poco.Net.SecureStreamSocketImpl.html" title="class Poco::Net::SecureStreamSocketImpl">SecureStreamSocketImpl</a>. </p>
</div>
<h2>Destructor</h2>
<h3><a name="16252">~SecureStreamSocketImpl</a> <img src="images/protected.gif" alt="protected" title="protected" style="vertical-align:baseline;" border="0" />  <img src="images/virtual.gif" alt="virtual" title="virtual" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">~<a href="Poco.Net.SecureStreamSocketImpl.html" title="class Poco::Net::SecureStreamSocketImpl">SecureStreamSocketImpl</a>();</p>
<div class="description">
<p>Destroys the <a href="Poco.Net.SecureStreamSocketImpl.html" title="class Poco::Net::SecureStreamSocketImpl">SecureStreamSocketImpl</a>. </p>
</div>
<h2>Member Functions</h2>
<h3><a name="16200">acceptConnection</a> <img src="images/virtual.gif" alt="virtual" title="virtual" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl"><a href="Poco.Net.SocketImpl.html" title="class Poco::Net::SocketImpl">SocketImpl</a> * acceptConnection(<br />&nbsp;&nbsp;&nbsp;&nbsp;<a href="Poco.Net.SocketAddress.html" title="class Poco::Net::SocketAddress">SocketAddress</a> &amp; clientAddr<br />);</p>
<div class="description">
<p>Not supported by a <a href="Poco.Net.SecureStreamSocket.html" title="class Poco::Net::SecureStreamSocket">SecureStreamSocket</a>. </p>
<p>Throws a <a href="Poco.InvalidAccessException.html" title="class Poco::InvalidAccessException">Poco::InvalidAccessException</a>. </p>
</div>
<div class="description"><p><b>See also:</b> <a href="Poco.Net.SocketImpl.html#15187" title="Poco::Net::SocketImpl::acceptConnection()">Poco::Net::SocketImpl::acceptConnection()</a></p></div>
<h3><a name="16209">bind</a> <img src="images/virtual.gif" alt="virtual" title="virtual" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">void bind(<br />&nbsp;&nbsp;&nbsp;&nbsp;const <a href="Poco.Net.SocketAddress.html" title="class Poco::Net::SocketAddress">SocketAddress</a> &amp; address,<br />&nbsp;&nbsp;&nbsp;&nbsp;bool reuseAddress = false<br />);</p>
<div class="description">
<p>Not supported by a <a href="Poco.Net.SecureStreamSocket.html" title="class Poco::Net::SecureStreamSocket">SecureStreamSocket</a>. </p>
<p>Throws a <a href="Poco.InvalidAccessException.html" title="class Poco::InvalidAccessException">Poco::InvalidAccessException</a>. </p>
</div>
<div class="description"><p><b>See also:</b> <a href="Poco.Net.SocketImpl.html#15196" title="Poco::Net::SocketImpl::bind()">Poco::Net::SocketImpl::bind()</a></p></div>
<h3><a name="16214">close</a> <img src="images/virtual.gif" alt="virtual" title="virtual" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">void close();</p>
<div class="description">
<p>Close the socket. </p>
</div>
<div class="description"><p><b>See also:</b> <a href="Poco.Net.SocketImpl.html#15201" title="Poco::Net::SocketImpl::close()">Poco::Net::SocketImpl::close()</a></p></div>
<h3><a name="16249">completeHandshake</a></h3>
<p class="decl">int completeHandshake();</p>
<div class="description">
<p>Completes the SSL handshake. </p>
<p>If the SSL connection was the result of an accept(), the server-side handshake is completed, otherwise a client-side handshake is performed.  </p>
</div>
<h3><a name="16202">connect</a> <img src="images/virtual.gif" alt="virtual" title="virtual" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">void connect(<br />&nbsp;&nbsp;&nbsp;&nbsp;const <a href="Poco.Net.SocketAddress.html" title="class Poco::Net::SocketAddress">SocketAddress</a> &amp; address<br />);</p>
<div class="description">
<p>Initializes the socket and establishes a connection to  the TCP server at the given address. </p>
<p>Can also be used for UDP sockets. In this case, no connection is established. Instead, incoming and outgoing packets are restricted to the specified address. </p>
</div>
<div class="description"><p><b>See also:</b> <a href="Poco.Net.SocketImpl.html#15189" title="Poco::Net::SocketImpl::connect()">Poco::Net::SocketImpl::connect()</a></p></div>
<h3><a name="16204">connect</a> <img src="images/virtual.gif" alt="virtual" title="virtual" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">void connect(<br />&nbsp;&nbsp;&nbsp;&nbsp;const <a href="Poco.Net.SocketAddress.html" title="class Poco::Net::SocketAddress">SocketAddress</a> &amp; address,<br />&nbsp;&nbsp;&nbsp;&nbsp;const <a href="Poco.Timespan.html" title="class Poco::Timespan">Poco::Timespan</a> &amp; timeout<br />);</p>
<div class="description">
<p>Initializes the socket, sets the socket timeout and  establishes a connection to the TCP server at the given address. </p>
</div>
<div class="description"><p><b>See also:</b> <a href="Poco.Net.SocketImpl.html#15191" title="Poco::Net::SocketImpl::connect()">Poco::Net::SocketImpl::connect()</a></p></div>
<h3><a name="16207">connectNB</a> <img src="images/virtual.gif" alt="virtual" title="virtual" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">void connectNB(<br />&nbsp;&nbsp;&nbsp;&nbsp;const <a href="Poco.Net.SocketAddress.html" title="class Poco::Net::SocketAddress">SocketAddress</a> &amp; address<br />);</p>
<div class="description">
<p>Initializes the socket and establishes a connection to  the TCP server at the given address. Prior to opening the connection the socket is set to nonblocking mode. </p>
</div>
<div class="description"><p><b>See also:</b> <a href="Poco.Net.SocketImpl.html#15194" title="Poco::Net::SocketImpl::connectNB()">Poco::Net::SocketImpl::connectNB()</a></p></div>
<h3><a name="16242">context</a> <img src="images/inline.gif" alt="inline" title="inline" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl"><a href="Poco.Net.Context.html#15711" title="Poco::Net::Context::Ptr">Context::Ptr</a> context() const;</p>
<div class="description">
<p>Returns the SSL context used by this socket. </p>
</div>
<h3><a name="16245">getLazyHandshake</a></h3>
<p class="decl">bool getLazyHandshake() const;</p>
<div class="description">
<p>Returns true if <a href="Poco.Net.SecureStreamSocketImpl.html#16243" title="Poco::Net::SecureStreamSocketImpl::setLazyHandshake()">setLazyHandshake</a>(true) has been called. </p>
</div>
<h3><a name="16240">getPeerHostName</a> <img src="images/inline.gif" alt="inline" title="inline" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">const std::string &amp; getPeerHostName() const;</p>
<div class="description">
<p>Returns the peer host name. </p>
</div>
<h3><a name="16212">listen</a> <img src="images/virtual.gif" alt="virtual" title="virtual" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">void listen(<br />&nbsp;&nbsp;&nbsp;&nbsp;int backlog = 64<br />);</p>
<div class="description">
<p>Not supported by a <a href="Poco.Net.SecureStreamSocket.html" title="class Poco::Net::SecureStreamSocket">SecureStreamSocket</a>. </p>
<p>Throws a <a href="Poco.InvalidAccessException.html" title="class Poco::InvalidAccessException">Poco::InvalidAccessException</a>. </p>
</div>
<div class="description"><p><b>See also:</b> <a href="Poco.Net.SocketImpl.html#15199" title="Poco::Net::SocketImpl::listen()">Poco::Net::SocketImpl::listen()</a></p></div>
<h3><a name="16241">peerCertificate</a></h3>
<p class="decl"><a href="Poco.Net.X509Certificate.html" title="class Poco::Net::X509Certificate">X509Certificate</a> peerCertificate() const;</p>
<div class="description">
<p>Returns the peer's X509 certificate. </p>
</div>
<h3><a name="16219">receiveBytes</a> <img src="images/virtual.gif" alt="virtual" title="virtual" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">int receiveBytes(<br />&nbsp;&nbsp;&nbsp;&nbsp;void * buffer,<br />&nbsp;&nbsp;&nbsp;&nbsp;int length,<br />&nbsp;&nbsp;&nbsp;&nbsp;int flags = 0<br />);</p>
<div class="description">
<p>Receives data from the socket and stores it in buffer. Up to length bytes are received. </p>
<p>Returns the number of bytes received. </p>
</div>
<div class="description"><p><b>See also:</b> <a href="Poco.Net.SocketImpl.html#15209" title="Poco::Net::SocketImpl::receiveBytes()">Poco::Net::SocketImpl::receiveBytes()</a></p></div>
<h3><a name="16228">receiveFrom</a> <img src="images/virtual.gif" alt="virtual" title="virtual" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">int receiveFrom(<br />&nbsp;&nbsp;&nbsp;&nbsp;void * buffer,<br />&nbsp;&nbsp;&nbsp;&nbsp;int length,<br />&nbsp;&nbsp;&nbsp;&nbsp;<a href="Poco.Net.SocketAddress.html" title="class Poco::Net::SocketAddress">SocketAddress</a> &amp; address,<br />&nbsp;&nbsp;&nbsp;&nbsp;int flags = 0<br />);</p>
<div class="description">
<p>Not supported by a <a href="Poco.Net.SecureStreamSocket.html" title="class Poco::Net::SecureStreamSocket">SecureStreamSocket</a>. </p>
<p>Throws a <a href="Poco.InvalidAccessException.html" title="class Poco::InvalidAccessException">Poco::InvalidAccessException</a>. </p>
</div>
<div class="description"><p><b>See also:</b> <a href="Poco.Net.SocketImpl.html#15218" title="Poco::Net::SocketImpl::receiveFrom()">Poco::Net::SocketImpl::receiveFrom()</a></p></div>
<h3><a name="16215">sendBytes</a> <img src="images/virtual.gif" alt="virtual" title="virtual" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">int sendBytes(<br />&nbsp;&nbsp;&nbsp;&nbsp;const void * buffer,<br />&nbsp;&nbsp;&nbsp;&nbsp;int length,<br />&nbsp;&nbsp;&nbsp;&nbsp;int flags = 0<br />);</p>
<div class="description">
<p>Sends the contents of the given buffer through the socket. <a href="Poco.Any.html" title="class Poco::Any">Any</a> specified flags are ignored. </p>
<p>Returns the number of bytes sent, which may be less than the number of bytes specified. </p>
</div>
<div class="description"><p><b>See also:</b> <a href="Poco.Net.StreamSocketImpl.html#15525" title="Poco::Net::StreamSocketImpl::sendBytes()">Poco::Net::StreamSocketImpl::sendBytes()</a></p></div>
<h3><a name="16223">sendTo</a> <img src="images/virtual.gif" alt="virtual" title="virtual" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">int sendTo(<br />&nbsp;&nbsp;&nbsp;&nbsp;const void * buffer,<br />&nbsp;&nbsp;&nbsp;&nbsp;int length,<br />&nbsp;&nbsp;&nbsp;&nbsp;const <a href="Poco.Net.SocketAddress.html" title="class Poco::Net::SocketAddress">SocketAddress</a> &amp; address,<br />&nbsp;&nbsp;&nbsp;&nbsp;int flags = 0<br />);</p>
<div class="description">
<p>Not supported by a <a href="Poco.Net.SecureStreamSocket.html" title="class Poco::Net::SecureStreamSocket">SecureStreamSocket</a>. </p>
<p>Throws a <a href="Poco.InvalidAccessException.html" title="class Poco::InvalidAccessException">Poco::InvalidAccessException</a>. </p>
</div>
<div class="description"><p><b>See also:</b> <a href="Poco.Net.SocketImpl.html#15213" title="Poco::Net::SocketImpl::sendTo()">Poco::Net::SocketImpl::sendTo()</a></p></div>
<h3><a name="16233">sendUrgent</a> <img src="images/virtual.gif" alt="virtual" title="virtual" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">void sendUrgent(<br />&nbsp;&nbsp;&nbsp;&nbsp;unsigned char data<br />);</p>
<div class="description">
<p>Not supported by a <a href="Poco.Net.SecureStreamSocket.html" title="class Poco::Net::SecureStreamSocket">SecureStreamSocket</a>. </p>
<p>Throws a <a href="Poco.InvalidAccessException.html" title="class Poco::InvalidAccessException">Poco::InvalidAccessException</a>. </p>
</div>
<div class="description"><p><b>See also:</b> <a href="Poco.Net.SocketImpl.html#15223" title="Poco::Net::SocketImpl::sendUrgent()">Poco::Net::SocketImpl::sendUrgent()</a></p></div>
<h3><a name="16243">setLazyHandshake</a></h3>
<p class="decl">void setLazyHandshake(<br />&nbsp;&nbsp;&nbsp;&nbsp;bool flag = true<br />);</p>
<div class="description">
<p>Enable lazy SSL handshake. If enabled, the SSL handshake will be performed the first time date is sent or received over the connection. </p>
</div>
<h3><a name="16238">setPeerHostName</a> <img src="images/inline.gif" alt="inline" title="inline" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">void setPeerHostName(<br />&nbsp;&nbsp;&nbsp;&nbsp;const std::string &amp; hostName<br />);</p>
<div class="description">
<p>Sets the peer host name for certificate validation purposes. </p>
</div>
<h3><a name="16237">shutdown</a> <img src="images/virtual.gif" alt="virtual" title="virtual" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">void shutdown();</p>
<div class="description">
<p>Shuts down the SSL connection. </p>
</div>
<div class="description"><p><b>See also:</b> <a href="Poco.Net.SocketImpl.html#15204" title="Poco::Net::SocketImpl::shutdown()">Poco::Net::SocketImpl::shutdown()</a></p></div>
<h3><a name="16235">shutdownReceive</a> <img src="images/virtual.gif" alt="virtual" title="virtual" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">void shutdownReceive();</p>
<div class="description">
<p>Shuts down the receiving part of the socket connection. </p>
<p>Since SSL does not support a half shutdown, this does nothing. </p>
</div>
<div class="description"><p><b>See also:</b> <a href="Poco.Net.SocketImpl.html#15202" title="Poco::Net::SocketImpl::shutdownReceive()">Poco::Net::SocketImpl::shutdownReceive()</a></p></div>
<h3><a name="16236">shutdownSend</a> <img src="images/virtual.gif" alt="virtual" title="virtual" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">void shutdownSend();</p>
<div class="description">
<p>Shuts down the receiving part of the socket connection. </p>
<p>Since SSL does not support a half shutdown, this does nothing. </p>
</div>
<div class="description"><p><b>See also:</b> <a href="Poco.Net.SocketImpl.html#15203" title="Poco::Net::SocketImpl::shutdownSend()">Poco::Net::SocketImpl::shutdownSend()</a></p></div>
<h3><a name="16246">verifyPeerCertificate</a></h3>
<p class="decl">void verifyPeerCertificate();</p>
<div class="description">
<p>Performs post-connect (or post-accept) peer certificate validation, using the peer's IP address as host name. </p>
</div>
<h3><a name="16247">verifyPeerCertificate</a></h3>
<p class="decl">void verifyPeerCertificate(<br />&nbsp;&nbsp;&nbsp;&nbsp;const std::string &amp; hostName<br />);</p>
<div class="description">
<p>Performs post-connect (or post-accept) peer certificate validation using the given host name. </p>
</div>
<h3><a name="16250">acceptSSL</a> <img src="images/protected.gif" alt="protected" title="protected" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">void acceptSSL();</p>
<div class="description">
<p>Performs a SSL server-side handshake. </p>
</div>
<h3><a name="16251">connectSSL</a> <img src="images/protected.gif" alt="protected" title="protected" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">void connectSSL();</p>
<div class="description">
<p>Performs a SSL client-side handshake on an already connected TCP socket. </p>
</div>
<h3><a name="16254">error</a> <img src="images/protected.gif" alt="protected" title="protected" style="vertical-align:baseline;" border="0" />  <img src="images/static.gif" alt="static" title="static" style="vertical-align:baseline;" border="0" />  <img src="images/inline.gif" alt="inline" title="inline" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">static void error();</p>
<div class="description">
<p></p>
</div>
<h3><a name="16255">error</a> <img src="images/protected.gif" alt="protected" title="protected" style="vertical-align:baseline;" border="0" />  <img src="images/static.gif" alt="static" title="static" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">static void error(<br />&nbsp;&nbsp;&nbsp;&nbsp;const std::string &amp; arg<br />);</p>
<div class="description">
<p></p>
</div>
<h3><a name="16257">error</a> <img src="images/protected.gif" alt="protected" title="protected" style="vertical-align:baseline;" border="0" />  <img src="images/static.gif" alt="static" title="static" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">static void error(<br />&nbsp;&nbsp;&nbsp;&nbsp;int code<br />);</p>
<div class="description">
<p></p>
</div>
<h3><a name="16259">error</a> <img src="images/protected.gif" alt="protected" title="protected" style="vertical-align:baseline;" border="0" />  <img src="images/static.gif" alt="static" title="static" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">static void error(<br />&nbsp;&nbsp;&nbsp;&nbsp;int code,<br />&nbsp;&nbsp;&nbsp;&nbsp;const std::string &amp; arg<br />);</p>
<div class="description">
<p></p>
</div>
<h3><a name="16253">lastError</a> <img src="images/protected.gif" alt="protected" title="protected" style="vertical-align:baseline;" border="0" />  <img src="images/static.gif" alt="static" title="static" style="vertical-align:baseline;" border="0" />  <img src="images/inline.gif" alt="inline" title="inline" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">static int lastError();</p>
<div class="description">
<p></p>
</div>
<p class="footer">POCO C++ Libraries 1.3.6-all<br />
Copyright &copy; 2009, <a href="http://pocoproject.org/" target="_blank">Applied Informatics Software Engineering GmbH and Contributors</a></p>

</div>
</body>
</html>