FSocket::GetPeerAddress

Reads the address of the peer the socket is connected to.

Windows
MacOS
Linux

References

Module

Sockets

Header

/Engine/Source/Runtime/Sockets/Public/Sockets.h

Include

#include "Sockets.h"

Syntax

bool GetPeerAddress
(
    FInternetAddr & OutAddr
)

Remarks

Reads the address of the peer the socket is connected to.

Returns

true if the address was retrieved correctly, false otherwise.

Parameters

Parameter

Description

OutAddr

Address of the peer the socket is connected to.

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