FSimpleAbstractSocket

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

Choose your operating system:

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