13 #ifdef DtUSE_UTILITIES_NAMESPACE
14 namespace DtUSE_UTILITIES_NAMESPACE
43 bool immediateOpen =
true );
81 virtual bool setDestination(
const DtInetEndpoint& addr )
override;
82 virtual bool openSocket()
override;
83 virtual bool closeSocket()
override;
85 virtual bool listenForConnections()
override;
88 virtual int send(caddr_t packet,
size_t size,
DtU32 flags = 0)
override;
89 virtual int sendTo(caddr_t packet,
size_t size,
DtInetEndpoint& dest,
DtU32 flags = 0)
override;
98 virtual unsigned descriptor()
const override;
103 virtual bool handshakeDestination();
109 static void setServerCRT(
const DtString& crt);
112 static void setServerKey(
const DtString& key);
115 static void setClientCRT(
const DtString& crt);
118 static void setClientKey(
const DtString& key);
121 static void setCaCRT(
const DtString& crt);
124 static void setCertificateFolder(
const DtString& folder);
125 static const DtString& certificateFolder();
127 static void setClientCertRequired(
bool required);
128 static bool clientCertRequired();
134 virtual bool initSslForListening();
137 virtual bool initClientSslContext();
142 virtual bool buildCertificateFilePath(
DtFilename& certFilename);
183 #ifdef DtUSE_UTILITIES_NAMESPACE
static DtString theCaCRT
Static members for default certificate paths and client cert requirement.
Definition: vlInetTlsSocket.h:171
static bool theClientCertRequired
Wheter server sockets require client certificates for mutual authentication. Default is true...
Definition: vlInetTlsSocket.h:179
static DtString theClientCRT
Static members for default certificate paths and client cert requirement.
Definition: vlInetTlsSocket.h:169
Definition: vlInetAddrUtils.h:58
void * mySslStream
opaque handles to avoid exposing boost types in header
Definition: vlInetTlsSocket.h:149
Contains the DtString class declaration.
DtInetSockRcvStatus
Socket state enumeration.
Definition: vlInetSocket.h:129
This file contains the declaration of the DtInetTcpSocket base class.
static DtString theClientKey
Static members for default certificate paths and client cert requirement.
Definition: vlInetTlsSocket.h:170
std::vector< DtInetBuffer * > DtInetBufferChain
Socket state enumeration.
Definition: vlInetSocket.h:105
void * mySslContext
opaque handles to avoid exposing boost types in header
Definition: vlInetTlsSocket.h:148
int recv(int s, char *buf, int bufLen, int flags)
static DtString theServerKey
Static members for default certificate paths and client cert requirement.
Definition: vlInetTlsSocket.h:168
#define DtSockOptNoDelay
Tell TCP sockets to disable Nagle packet coalescing and enables TCP_NODELAY operation.
Definition: vlInetSocket.h:65
DtInetAddrFamily
Definition: vlInetAddrUtils.h:55
The DtInetEndpoint class provides a protocol independant, address family independent mechanism to rep...
Definition: vlInetEndpoint.h:34
bool myOwnContext
Track whether we own the SSL context (i.e., should delete it in destructor) Accepted client sockets w...
Definition: vlInetTlsSocket.h:159
bool myStreamIsOpen
Track whether the SSL stream is currently open (i.e., handshake completed).
Definition: vlInetTlsSocket.h:155
static DtString theCertificateFolder
Folder to prepend to certificate file names if the file name is relative.
Definition: vlInetTlsSocket.h:175
Definition: vlInetDevice.h:101
Instances of DtFilename are DtStrings which convert filenames to the native format.
Definition: vlFilename.h:20
Definition: vlInetTlsSocket.h:20
unsigned short DtU16
A 16 bit unsigned integer value.
Definition: vlMachineTypes.h:152
static DtString theServerCRT
Static members for default certificate paths and client cert requirement.
Definition: vlInetTlsSocket.h:167
int send(int s, char *buf, int bufLen, int flags)
unsigned long DtU32
A 32 bit unsigned integer value.
Definition: vlMachineTypes.h:165
Instances of DtString are used to represent strings.
Definition: vlString.h:38
The DtInetSocket class provides an address family independent stream socket.
Definition: vlInetTcpSocket.h:23
#define DtDefaultSockOpts
Marks the Socket as Writable.
Definition: vlInetSocket.h:90
#define DT_DLL_VLUTIL
Definition: vlMachineTypes.h:121