Skip to content

ReceiveSocketMapValue

Quintin edited this page May 16, 2023 · 5 revisions

Receive Socket Map Value

Contains info for UDP Receive sockets that have been set up and their associated UDP receivers.

struct FReceiveSocketMapValue

Back to Top


Members

Type Name Description
FSocket* ReceiveSocket The receive socket associated with this mapping value
FUdpSocketReceiver* UDPReceiver The UDP socket receiver associated with this mapping value

Back to Top


Constructors

Access Name Description
FReceiveSocketMapValue() Default constructor
FReceiveSocketMapValue(FSocket* NewReceiveSocket, FUdpSocketReceiver* NewUdpReceiver) Constructor taking in both the receive socket and UDP receiver

Functions

Return Name Description
bool CloseReceiveSocket() Function that closes the receive socket specified by this struct

Back to Top


Details

Receive Socket

FSocket* ReceiveSocket

The receive socket to be used alongside this struct mapping.

Back to Top


UDP Receiver

FUdpSocketReceiver* UDPReceiver

The UDP socket receiver to be used alongside this struct mapping.

Back to Top


FReceiveSocketMapValue

FReceiveSocketMapValue()

Default constructor. Initializes the receive socket and UDP receiver as null pointers.

Back to Top


FReceiveSocketMapValue

FReceiveSocketMapValue
(
	FSocket* NewReceiveSocket, 
	FUdpSocketReceiver* NewUdpReceiver
)

Secondary constructor. Initializes the receive socket and UDP receiver with the given values.

Parameter Description
NewReceiveSocket The pointer to the receive socket to use with this struct mapping.
NewUdpReceiver The pointer to the UDP receiver to use with this struct mapping.

Back to Top


CloseReceiveSocket

bool CloseReceiveSocket()

Closes the receive socket and stops the associated UDP receiver.

Returns
True if the socket and receiver were closed.

Back to Top


Clone this wiki locally