SendToAll
Send a packet to all except yourself.
Method Parameters
Parameter | Description |
---|---|
data | Byte array for the data to send |
size | Size of data in bytes |
reliable | Send this reliably or not |
ordered | Received this ordered or not |
channel | One of: (CHANNEL_HIGH_PRIORITY_1, CHANNEL_HIGH_PRIORITY_2, CHANNEL_NORMAL_PRIORITY, CHANNEL_LOW_PRIORITY) |
Usage
http://localhost:3000
- C#
- C++
- Objective-C
- Java
- JavaScript
- Dart
- Cloud Code
- Raw
RSDataCallback rsDataCallback = (response) =>
{
Debug.Log(string.Format("Success | {0}", response));
};
_bc.RelayService.SendToAll(data, size, reliable, ordered, channel);
_bc->getRelayService()->sendToAll(const uint8_t* in_data, int in_size, bool in_reliable, bool in_ordered, eRelayChannel in_channel);
_bc->getRelayService()->sendToAll(const uint8_t* in_data, int in_size, bool in_reliable, bool in_ordered, eRelayChannel in_channel);
_bc->getRelayService()->sendToAll(const uint8_t* in_data, int in_size, bool in_reliable, bool in_ordered, eRelayChannel in_channel);
_bc.relay.sendToAll(const uint8_t* in_data, int in_size, bool in_reliable, bool in_ordered, eRelayChannel in_channel);
int aNetId = 2;
Uint8List bytes = utf8.encode("Some Data here");
_bc.relayService.sendToAll(bytes,
reliable: true,
ordered: true,
channel: BrainCloudRelay.channelHighPriority_1);
// N/A
// N/A