FTcpListener::OnConnectionAccepted

Gets a delegate to be invoked when an incoming connection has been accepted.

Choose your operating system:

Windows

macOS

Linux

References

Module

Networking

Header

/Engine/Source/Runtime/Networking/Public/Common/TcpListener.h

Include

#include "Common/TcpListener.h"

Syntax

FOnTcpListenerConnectionAccepted & OnConnectionAccepted()

Remarks

Gets a delegate to be invoked when an incoming connection has been accepted.

If this delegate is not bound, the listener will reject all incoming connections. To temporarily disable accepting connections, use the Enable() and Disable() methods.

Returns

The delegate.