Skip to Content
Internet Protocol
Unreal Engine Plugin

TCP Server Openssl

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

References

#include "tcp/tcpserver.h"

How to use

Blueprint: search by GetInternetProtocolSubsystem and call CreateTCPServer function

C++: Use the code bellow

#include "tcp/tcpserver.h"

FSecurityContextOpts SecOpts = { ... };
UTCPServerSsl* net = NewObject<UTCPServerSsl>();
// Required: a TLS server needs a certificate and a private key
net->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, TCPServerSsl is the TCPServer class with Use Tls turned on. You can also use a plain TCPServer and call Set Tls Options with a certificate and a private key before Open. The connections it accepts are the shared TCPRemote class.

Functions

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

Edit on GitHub

On this page