Changelogs
Release notes for Internet Protocol: new features, breaking changes and fixes in the C++ library and the Unreal Engine plugin.
4.0.0
Unreal Engine plugin. Unifies the TLS classes, hardens every protocol and adds many features. Most Blueprints keep working, but read Migrating to 4.0 before updating a project.
Breaking changes
- Requires Unreal Engine 5 (tested on 5.8). Use the 3.x releases for UE 4.27.
- TLS lives on the base classes: every TCP, WebSocket and HTTP client and server has
Use TlsandSet Tls Options. The*Sslclient and server classes are kept as subclasses with TLS on, so existing Blueprints keep working. TCPRemoteSsl,WSRemoteSslandHttpRemoteSslwere merged intoTCPRemote,WSRemoteandHttpRemote(CoreRedirects keep old assets loading).Scripts/migrate_4_0.pyre-saves Blueprints and maps against the new classes.Add To Root,Remove From RootandIs Rootedare deprecated: keep the object in a variable instead.Clientson the servers returns a copy. HTTPRequestreturns the request id.EOutputExecPinsis a scoped enum in C++.- New defaults: connect timeout 15 s, server handshake timeout 10 s, HTTP server idle timeout 60 s,
503after 30 s without a response, WebSocket ping after 20 s and idle close after 60 s,Max Connections1024, receive backpressure at 8 MiB,Protocol = Any,No Delayon, case-sensitive HTTP routes. See the table of new defaults.
Connections
- Timeouts:
Connect Timeout Secondson clients (DNS + connect + TLS + WebSocket upgrade) andHandshake Timeout Secondson servers. Idle timeouts reportOperation timed out. Max Connectionson servers, andBacklogclamped to the OS maximum.- Receive backpressure: TCP, TLS and WebSocket stop reading while the Game Thread is more than
Max Pending Receive MBbehind; UDP drops and counts datagrams. EProtocolType::Any(new default): clients try every resolved address, servers listen dual stack on::, and[::1]literals are accepted.- New bind options:
No Delay,Keep Alive,Max Queued MB, socket buffer sizes, and a local address/port for UDP clients. FErrorCode.Category(System,SSL,Plugin,Http,WebSocket). A full send queue reportsSend queue is full.Get Statson TCP and WebSocket connections: bytes and messages sent and received, queued bytes and ping round trip.- Graceful TCP close sends FIN and drains until the peer closes.
Closefollowed byConnectkeeps theOn Closeof the old session. - Servers keep each remote in
Clientsuntil its ownOn Closearrives. - Repeated log warnings and accept errors are rate limited.
TCP
- Message framing with
Framing:Raw(default),Length Prefixed(u32 big endian) orDelimiter, withMax Message Bytes.Writeadds the framing andOn Messagereceives whole messages.
UDP
- Broadcast (
Set Broadcast) and multicast (Join Multicast Group,Leave Multicast Group,Set Multicast TTL,Set Multicast Loopback). - 64 KiB receive buffer by default. Oversized datagrams are dropped and counted instead of being fatal, and Windows ICMP resets no longer close the socket.
WebSocket
Connect Urlwithws://andwss://.- Automatic ping after
Ping Interval Secondsof silence and idle close afterIdle Timeout Seconds, on clients and server remotes. Auto Reconnecton clients, with 1, 2, 4... s backoff up toReconnect Max Delay Seconds. Never afterCloseorEnd.- Subprotocols:
Sub Protocolson servers, offered by clients with theSec-WebSocket-Protocolheader, andGet Sub Protocol. On Upgrade Requeston servers, answered withAccept Upgrade/Reject Upgrade(for example to checkOriginor a token).- Fragmented messages with
Dataframe.Fin = false, empty messages, andGet Round Trip Time Ms. - Protocol correctness: frames with RSV bits are refused (
1002), extensions are never negotiated, close codes1012-1014are accepted, unsendable close codes are replaced by1000, and a wrongSec-WebSocket-Versiongets426.
HTTP client
- Binary bodies (
Body Bytes) and repeated headers (Header List, for example severalSet-Cookie). Requestreturns an id forCancel, and requests have their ownTimeout Seconds.On Progressevery 64 KiB,Max Redirects(same host), andSet Urlwithhttp://andhttps://.- Interim
1xxresponses are skipped.Set Hostto another host cancels pending requests (Operation cancelled). An idempotent request whose reused connection closed before any response byte is resent once.
HTTP server
- Route parameters (
/users/:id,/files/*inRoute Params), exact routes first,405withAllow,HEADfalling back toGET, andExpect: 100-continue. - Streamed responses:
Begin Stream,Write Chunk,Write Chunk BufferandEnd Stream. Response Timeout Seconds(503),Max Header Bytes(431) andMax Body Bytes(413). A handler that setsConnection: closecloses the connection.- Strict parsing: bare CR/LF, obsolete line folding, invalid header names, CR/LF in the path or host, HTTP/1.1 requests without
Hostand ambiguousTransfer-Encodingare refused. Pipelined input is bounded while a response is pending.
JSON
Try Get Object Fieldno longer crashes on missing fields,To Stringon an unset object returns an empty string,Try Get Byte Array Fieldfills its result, and bool arrays are JSON booleans.- Integer64 values keep every digit, and numeric strings are read as Integer64.
Set Object Field/Set Object Array Fieldrefuse cycles.
RTMP
- The publisher refuses to start outside DirectX 12 with a clear
On Error, instead of crashing the GPU on D3D11. - The example module builds for Game and Shipping packages.
Other
- I/O threads start on first use, and the subsystem owns the objects it creates and closes them when the world ends.
- New automation tests for transports, TCP framing and stats, UDP multicast and large datagrams, WebSocket fragments, subprotocols, upgrade accept/reject, reconnect and ping, HTTP parsing, routing, streaming, redirects, timeouts and cancel, and JSON.
3.1.0
Unreal Engine plugin. Adds RTMP/RTMPS and live audio/video: receive streams from OBS or FFmpeg, serve RTMP viewers, pull from other servers and publish from Unreal. Existing modules are unchanged. See the RTMP overview.
RTMP server
- New
RTMP Server(URTMPServer) and theCreate RTMPServersubsystem node. - Accepts publishers (OBS, FFmpeg, another Unreal) on port 1935 and hands their media to receivers.
- RTMPS through
Set Tls Options, using the plugin's TLS layer. Set Allowed Stream Keysrestricts which keys may publish. A second publisher on a live key is refused.- Playback to RTMP clients (VLC, ffplay, OBS Media Source), off by default. Viewers use a view key that must differ from the stream key, so the publishing key is never handed out. Optional limit of viewers per stream.
- Viewers have a bounded send queue: under congestion P-frames are dropped and the stream resumes at the next keyframe. Viewers stay connected while the publisher reconnects.
- New events:
On Publish Started,On Publish Ended,On Play StartedandOn Play Ended.
Receive
- New
RTMP Receiver(UIPRtmpReceiver): H.264/AAC decoded with Electra and played through the Media Framework. Get Video Texturefor materials and UMG, andCreate Audio Componentfor spatialized sound.- Three ways to start:
Start From Server,Start Pull(rtmp://andrtmps://, with reconnection and exponential backoff) andStart Url(iprtmp://orrtmp(s)://). Low Latency(about 150 ms) andSmooth(about 1000 ms) jitter buffers, configurable in ms. Audio is the master clock.IP Rtmp Media Sourceand aniprtmp://media player, also usable with Media Player, Media Texture and Media Plate.On Started,On Ended,On Error,On FrameandGet Stats(fps, bitrate, buffer, drops, rebuffers, decoders).
Publish
- New
RTMP Publisher(UIPRtmpPublisher): streams the viewport, a render target or a scene capture to Twitch, YouTube, MediaMTX, nginx-rtmp or another Unreal. - H.264 encoded on the GPU through AVCodecs (NVENC, then AMF), with no CPU readback. AAC-LC 48 kHz stereo through Media Foundation.
- Audio from the main submix, a chosen submix, or samples pushed with
Push Audio Samples. - Bounded send queue that drops P-frames first, and reconnection with exponential backoff (1 to 30 s) that forces a keyframe.
On State Changed,On Publishing,On Reconnecting,On ErrorandGet Stats(fps, sent bitrate, drops, queue, RTT, reconnections).
Security
- Stream keys and view keys are never logged, never saved and never
UPROPERTY. URLs are logged asrtmp://host/app/***. - RTMPS certificates are always verified: the RTMP code never disables verification.
Native C++ API
IRtmpPublishSession,IRtmpPlaySessionandFRtmpIngestHub(in theInternetProtocolmodule, no media dependencies) for custom pipelines.- Encoders and decoders are pluggable through
FIPMediaEncodersandFIPMediaDecoders.
Example map
- New
/InternetProtocol/Example/RTMP/RtmpExamplemap: receive, play from a server and publish, with a flash and a beep to check audio/video sync. See Examples.
Requirements
- RTMP is supported only on Unreal Engine 5.8, Win64, with the DirectX 12 RHI. The other networking modules still support 4.27 to 5.8.
- Publishing needs an NVIDIA (NVENC) or AMD (AMF) GPU. AVCodecs is Experimental in UE 5.8.
- Only H.264 and AAC are supported.
play2, HEVC/AV1 over RTMP and recording to disk are not.
Other
OpenSSLis now a public dependency of theInternetProtocolmodule, so modules that include its headers get the OpenSSL include paths.- New automation tests: AMF0, chunks, FLV, handshake, publish/play loopback over TCP and TLS, view keys, playout clock, encoders, FFmpeg push and pull, publisher to receiver loopback and the example map.
3.0.2
Unreal Engine plugin. The networking core was rewritten. Blueprint nodes keep the same names and pins, so existing graphs keep working.
Threading and stability
- A single shared I/O service with a plugin-managed thread pool (1 to 4 threads) replaces the per-object threads. Each connection runs on its own strand.
- Every event and callback now runs on the Game Thread through weak object references. Destroying an object with pending operations no longer crashes.
- The Game Thread never blocks on network work, and every live connection is closed when the module shuts down.
Join ThreadsandStop Threadsare deprecated and do nothing.- Writes are queued in order with owned buffers.
Write/Sendreturn false when the send queue limit is exceeded (64 MiB for streams, 16 MiB for UDP). Closeis now graceful: it flushes pending data (and sends TLSclose_notify) with a timeout.On Closefires exactly once per connection.
TLS
- Secure by default: TLS 1.2 minimum, peer verification with the engine root certificates, SNI and host name verification on clients.
- New
FSecurityContextOptsfields:CA_Cert,bUseSystemRootCertificatesandbVerifyHostname. - Invalid TLS options now fail with a
TLS configuration failederror instead of running with a broken context. TLS servers require a certificate and a private key. Verify_Mode = Noneon a client logs a warning every time it is used.- SSL objects created with
NewObjectwithoutConstructnow use the secure defaults.
HTTP
- New incremental HTTP/1.x parser for client and server, with case-insensitive headers and limits (64 KiB headers, 64 MiB body).
- Client: requests are queued and sent one at a time over a keep-alive connection. Each callback fires exactly once, with the response or an error.
- Server: requests without a route receive
404 Not Foundautomatically, malformed requests receive400/413/431/501/505, and pipelined requests are answered in order. HEADresponses are handled without a body.
WebSocket
- New RFC 6455 implementation: fragmented messages are reassembled, text messages and close reasons are validated as UTF-8, and messages are limited to 64 MiB.
Endperforms the closing handshake and waits up to 5 seconds for the peer.Closeaborts immediately.On Closereports1005when no code was received,1006when the connection is lost without a Close frame, and1002/1007/1009on protocol violations.- Pings are answered with a pong automatically.
Servers
Open/Bindaccept an IP literal,localhostor an empty address. Host names and out-of-range ports fail with anInvalid argumenterror.
C++
- The public headers no longer expose Asio internals. They include
net/fwd.hinstead ofnet/asio.h, andget_socket(),Construct(io_context),Destroy(),connect()and theon_close/on_requestcallbacks were removed from the remote classes. FErrorCode,FUdpEndpointandFTcpEndpointare exported (INTERNETPROTOCOL_API) and have default values.LogAsiois exported.- Asio is configured once in
InternetProtocol.Build.cs(ASIO_STANDALONE,ASIO_NO_EXCEPTIONS,ASIO_NO_DEPRECATED). An unhandled Asio exception is now a fatal error instead of being silently logged. - The module now depends on the engine
SSLmodule.
Other
- Updated Asio from 1.36.0 to 1.38.2.
- Added the
InternetProtocolTestseditor module (Win64) with automation tests for TCP, UDP, HTTP, WebSocket, TLS and object lifecycle.
3.0
- This version contains breaking changes aimed at making usage much easier and more efficient.
- Added server socket support
- More than 80 bugs and crashes fixed
- TLS Support
- Updated asio to version 2.34.2
2.0
- Implemented server-side socket support for UDP, TCP, HTTP, and WebSocket protocols.
- The HTTP connection now automatically closes when the
Connectionheader is set toclose, or remains open when set tokeep-alive. - Enhanced error handling for HTTP requests and WebSocket handshake processes.
- Removed the reconnection attempt functionality.
- Deprecated several outdated HTTP methods.
- Fixed an issue where the SSL socket could only connect once.
- Unreal Engine: Resolved a bug causing events to be triggered outside the game thread.
- Improved handshake validation for the WebSocket client.
- And more...
1.0
- Initial release.