OnlinePicoNetworking Blueprint Function class.
More...
#include <Pico_Networking.h>
|
static bool | SendPacket (UObject *WorldContextObject, const FString &UserId, TArray< uint8 > BinaryArray, bool bReliable) |
| Sends messages to a specified user. The maximum messaging frequency is 1000/s. More...
|
|
static bool | SendPacketToCurrentRoom (UObject *WorldContextObject, TArray< uint8 > BinaryArray, bool bReliable) |
| Sends messages to other users in the room. The maximum messaging frequency is 1000/s. More...
|
|
static bool | ReadPacket (UObject *WorldContextObject, TArray< uint8 > &OutBinaries, FString &SendUserID) |
| Reads the messages from other users in the room. More...
|
|
OnlinePicoNetworking Blueprint Function class.
◆ ReadPacket()
static bool ReadPacket |
( |
UObject * |
WorldContextObject, |
|
|
TArray< uint8 > & |
OutBinaries, |
|
|
FString & |
SendUserID |
|
) |
| |
|
static |
Reads the messages from other users in the room.
- Parameters
-
WorldContextObject | Used to get the information about the current world. |
OutBinaries | Returns an array of byte. |
- Parameters
-
OutSendId | Returns user id which player send. |
- Returns
true
: success
false
: failure
◆ SendPacket()
static bool SendPacket |
( |
UObject * |
WorldContextObject, |
|
|
const FString & |
UserId, |
|
|
TArray< uint8 > |
BinaryArray, |
|
|
bool |
bReliable |
|
) |
| |
|
static |
Sends messages to a specified user. The maximum messaging frequency is 1000/s.
- Parameters
-
WorldContextObject | Used to get the information about the current world. |
UserId | The ID of the user to send messages to. |
BinaryArray | The message length (in bytes). The maximum bytes allowed is 512. |
bReliable | When reliable is set to true , messages between lost and resume will not be lost. The retention time is determined by the reserve_period parameter configured for the matchmaking pool, with a maximum of 1 minute. When reliable is set to false , this function works the same as the other SendPacket function. |
- Returns
true
: success
false
: failure
◆ SendPacketToCurrentRoom()
static bool SendPacketToCurrentRoom |
( |
UObject * |
WorldContextObject, |
|
|
TArray< uint8 > |
BinaryArray, |
|
|
bool |
bReliable |
|
) |
| |
|
static |
Sends messages to other users in the room. The maximum messaging frequency is 1000/s.
- Parameters
-
WorldContextObject | Used to get the information about the current world. |
BinaryArray | The message length (in bytes). The maximum bytes allowed is 512. |
bReliable | When reliable is set to true , messages between lost and resume will not be lost. The retention time is determined by the reserve_period parameter configured for the matchmaking pool, with a maximum of 1 minute. When reliable is set to false , this function works the same as the other SendPacketToCurrentRoom function. |
- Returns
true
: success
false
: failure