-
Notifications
You must be signed in to change notification settings - Fork 20
ReceiveSocketMapValue
Quintin edited this page May 16, 2023
·
5 revisions
Contains info for UDP Receive sockets that have been set up and their associated UDP receivers.
struct FReceiveSocketMapValue| Type | Name | Description |
|---|---|---|
| FSocket* | ReceiveSocket | The receive socket associated with this mapping value |
| FUdpSocketReceiver* | UDPReceiver | The UDP socket receiver associated with this mapping value |
| Access | Name | Description |
|---|---|---|
| FReceiveSocketMapValue() | Default constructor | |
| FReceiveSocketMapValue(FSocket* NewReceiveSocket, FUdpSocketReceiver* NewUdpReceiver) | Constructor taking in both the receive socket and UDP receiver |
| Return | Name | Description |
|---|---|---|
| bool | CloseReceiveSocket() | Function that closes the receive socket specified by this struct |
FSocket* ReceiveSocketThe receive socket to be used alongside this struct mapping.
FUdpSocketReceiver* UDPReceiverThe UDP socket receiver to be used alongside this struct mapping.
FReceiveSocketMapValue()Default constructor. Initializes the receive socket and UDP receiver as null pointers.
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. |
bool CloseReceiveSocket()Closes the receive socket and stops the associated UDP receiver.
| Returns |
|---|
| True if the socket and receiver were closed. |