libzmq
src
wss_engine.hpp
Go to the documentation of this file.
1
/* SPDX-License-Identifier: MPL-2.0 */
2
3
#ifndef __ZMQ_WSS_ENGINE_HPP_INCLUDED__
4
#define __ZMQ_WSS_ENGINE_HPP_INCLUDED__
5
6
#include <gnutls/gnutls.h>
7
#include "
ws_engine.hpp
"
8
9
#define WSS_BUFFER_SIZE 8192
10
11
namespace
zmq
12
{
13
class
wss_engine_t
:
public
ws_engine_t
14
{
15
public
:
16
wss_engine_t
(
fd_t
fd_,
17
const
options_t
&
options_
,
18
const
endpoint_uri_pair_t
&endpoint_uri_pair_,
19
ws_address_t
&address_,
20
bool
client_,
21
void
*tls_server_cred_,
22
const
std::string
&hostname_);
23
~wss_engine_t
();
24
25
void
out_event
();
26
27
protected
:
28
bool
handshake
();
29
void
plug_internal
();
30
int
read
(
void
*
data
,
size_t
size_);
31
int
write
(
const
void
*
data_
,
size_t
size_);
32
33
private
:
34
bool
do_handshake
();
35
36
bool
_established
;
37
gnutls_certificate_credentials_t
_tls_client_cred
;
38
gnutls_session_t
_tls_session
;
39
};
40
}
41
42
#endif
data_
StringPiece data_
Definition:
bytestream_unittest.cc:60
zmq::wss_engine_t::out_event
void out_event()
Definition:
wss_engine.cpp:104
zmq::wss_engine_t::write
int write(const void *data_, size_t size_)
Definition:
wss_engine.cpp:184
zmq::wss_engine_t::_tls_session
gnutls_session_t _tls_session
Definition:
wss_engine.hpp:38
zmq::options_t
Definition:
options.hpp:34
string
GLsizei const GLchar *const * string
Definition:
glcorearb.h:3083
zmq::wss_engine_t::_established
bool _established
Definition:
wss_engine.hpp:36
zmq::wss_engine_t::wss_engine_t
wss_engine_t(fd_t fd_, const options_t &options_, const endpoint_uri_pair_t &endpoint_uri_pair_, ws_address_t &address_, bool client_, void *tls_server_cred_, const std::string &hostname_)
Definition:
wss_engine.cpp:28
zmq::fd_t
int fd_t
Definition:
zmq.hpp:287
zmq::wss_engine_t::~wss_engine_t
~wss_engine_t()
Definition:
wss_engine.cpp:90
zmq
Definition:
zmq.hpp:229
zmq::endpoint_uri_pair_t
Definition:
endpoint.hpp:17
zmq::wss_engine_t::_tls_client_cred
gnutls_certificate_credentials_t _tls_client_cred
Definition:
wss_engine.hpp:37
zmq::wss_engine_t::read
int read(void *data, size_t size_)
Definition:
wss_engine.cpp:150
ws_engine.hpp
zmq::ws_address_t
Definition:
ws_address.hpp:15
zmq::wss_engine_t::handshake
bool handshake()
Definition:
wss_engine.cpp:139
zmq::wss_engine_t
Definition:
wss_engine.hpp:13
zmq::wss_engine_t::do_handshake
bool do_handshake()
Definition:
wss_engine.cpp:112
zmq::wss_engine_t::plug_internal
void plug_internal()
Definition:
wss_engine.cpp:98
zmq::ws_engine_t
Definition:
ws_engine.hpp:100
data
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
Definition:
glcorearb.h:2879
options_
DebugStringOptions options_
Definition:
src/google/protobuf/descriptor.cc:2410
libaditof
Author(s):
autogenerated on Wed May 21 2025 02:07:02