FTcpListener::FTcpListener

Creates and initializes a new instance from the specified socket.

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

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).