FSimpleAbstractSocket

Simple abstraction for sockets that allows [FNFSMessageHeader](API\Runtime\Sockets\FNFSMessageHeader) to use either an ordinary socket or a mutichannel socket

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

Sockets

Header

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

Include

#include "NetworkMessage.h"

Syntax

class FSimpleAbstractSocket

Remarks

Simple abstraction for sockets that allows FNFSMessageHeader to use either an ordinary socket or a mutichannel socket

Functions

Name Description

Public function Const

uint32

 

GetMagic()

Return the magic number for this message, also used for endian correction on the archives

Public function Const

bool

 

Receive

(
    uint8* Results,
    int32 Size
)

Block until we receive data from the socket

Public function Const

bool

 

Send

(
    const uint8* Buffer,
    int32 Size
)

Send bytes out the socket

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