Unreal Engine Plugin
UDP Server
How to use UDP server class
References
#include "UDP/UDPServer.h"
How to use
Blueprint: search by GetInternetProtocolSubsystem
and call CreateUDPServer
function
C++: Use the code bellow
Nodes
Set Socket
- Set
protocol
andport
of socket
Get Socket
- Get socket properties
Set Max Send Buffer Size
- Set max size in bytes of send buffer
Get Max Send Buffer Size
- Get max size in bytes of send buffer
Set Max Receive Buffer Size
- Set max size in bytes of receive buffer
Get Max Receive Buffer Size
- Get max size in bytes of receive buffer
Set Split Package
- If the size of a message exceeds the maximum allowed size for the send buffer, it will be divided into smaller packets before being sent.
Get Split Package
- Get if Split Package is enabled
Send Str to
- Send a string to a specific endpoint
Send Buffer To
- Send a buffer to a specific endpoint
Open
- Open the socket
- Returns false if the socket is already open
Close
- Close the socket
Get Error Code
- Get the latest error code
Events
On Bytes Transferred
- Event triggered when bytes are received and transferred
On Message Sent
- Event triggered when a message is sent
On Message Received
- Event triggered when a message is received by a endpoint
On Close
- Event triggered when the socket is closed
On Error
- Event triggered if any error occur during async process