UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FSimpleAbstractSocket Class Referenceabstract

#include <NetworkMessage.h>

+ Inheritance diagram for FSimpleAbstractSocket:

Public Member Functions

virtual bool Receive (uint8 *Results, int32 Size) const =0
 
virtual bool Send (const uint8 *Buffer, int32 Size) const =0
 
virtual uint32 GetMagic () const =0
 
virtual ~FSimpleAbstractSocket ()
 

Detailed Description

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

Constructor & Destructor Documentation

◆ ~FSimpleAbstractSocket()

virtual FSimpleAbstractSocket::~FSimpleAbstractSocket ( )
inlinevirtual

Destructor

Member Function Documentation

◆ GetMagic()

virtual uint32 FSimpleAbstractSocket::GetMagic ( ) const
pure virtual

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

Implemented in FSimpleAbstractSocket_FSocket, and FSimpleAbstractSocket_FMultichannelTCPSocket.

◆ Receive()

virtual bool FSimpleAbstractSocket::Receive ( uint8 Results,
int32  Size 
) const
pure virtual

Block until we receive data from the socket

Parameters
ResultsBuffer of at least Size size, used to hold the results
SizeNumber of bytes to read
Returns
true if read is successful

Implemented in FSimpleAbstractSocket_FSocket, and FSimpleAbstractSocket_FMultichannelTCPSocket.

◆ Send()

virtual bool FSimpleAbstractSocket::Send ( const uint8 Buffer,
int32  Size 
) const
pure virtual

Send bytes out the socket

Parameters
BufferBuffer containing bytes to send
SizeNumber of bytes to send
Returns
true if read is successful

Implemented in FSimpleAbstractSocket_FSocket, and FSimpleAbstractSocket_FMultichannelTCPSocket.


The documentation for this class was generated from the following file: