Skip to Content
Internet Protocol
Unreal Engine Plugin

TCP Client Openssl

TCP client over TLS (OpenSSL) for Unreal Engine: Blueprint nodes, events and C++ usage with the Internet Protocol plugin.

References

#include "tcp/tcpclient.h"

How to use

Blueprint: search by GetInternetProtocolSubsystem and call CreateTCPClientSsl function

C++: Use the code bellow

#include "tcp/tcpclient.h"

FSecurityContextOpts SecOpts = { ... };
UTCPClientSsl* client = NewObject<UTCPClientSsl>();
// Optional: without Construct, the secure defaults are used
client->Construct(SecOpts);

TLS options

  • SecOpts configures certificates, keys and verification. See Security Context Options for every field and its default.
  • Since 3.0.2 the connection is secure by default: TLS 1.2+, peer verification with the system root certificates and, for clients, host name verification + SNI.

4.0: one class for TLS and plain connections

Since 4.0, TCPClientSsl is the TCPClient class with Use Tls turned on. You can also use a plain TCPClient, set Use Tls or call Set Tls Options before connecting.

Functions

This class has the same variables, functions and events as TCPClient.

Edit on GitHub

On this page