FTcpListener::FTcpListener

Creates and initializes a new instance from the specified socket.

Windows
MacOS
Linux

References

Module

Networking

Header

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

Include

#include "Common/TcpListener.h"

Syntax

FTcpListener
(
    FSocket & InSocket,
    const FTimespan & InSleepTime,
    bool bInReusable
)

Remarks

Creates and initializes a new instance from the specified socket.

Parameters

Parameter

Description

InSocket

The socket to listen on.

SleepTime

SleepTime The maximum time to wait for a pending connection inside the polling loop (default = 1 second).

bInReusable

Toggles socket-reusability which allows for other sockets to use the same address (default = true).

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss