|
Network Library Documentation
|
Handles incoming packets from the server and performs client-side actions accordingly. More...
Static Public Member Functions | |
| static bool | ValidateHmac (Packet receivedPacket) |
| Validates the HMAC of a received packet using the client's stored key. | |
| static byte[] | GenerateHmac (byte[] data, byte[] key) |
| Generates a HMAC-SHA256 hash for the provided data using the given key. | |
| static void | Welcome (Packet receivedPacket) |
| Handles the welcome packet from the server, sets the client ID, and initiates UDP connection. | |
| static void | ReceiveHmacKey (Packet receivedPacket) |
| Handles receiving the HMAC key from the server and stores it on the client. | |
| static void | ReceiveToken (Packet receivedPacket) |
| Handles receiving an authentication token from the server and stores it on the client. | |
| static void | Latency (Packet receivedPacket) |
| Handles a latency response packet from the server. | |
| static void | SpawnUser (Packet receivedPacket) |
| Spawns a user prefab on the client. | |
| static void | BandwidthReply (Packet receivedPacket) |
| Handles a bandwidth test response from the server. | |
| static void | ThroughputReply (Packet receivedPacket) |
| Handles a throughput test response from the server. | |
| static void | ReceiveMessage (Packet receivedPacket) |
| Receives a private text message from server. | |
| static void | ReceiveMessageAll (Packet receivePacket) |
| Receives a broadcast message sent to all clients by the server. | |
| static void | DisconnectUser (Packet receivedPacket) |
| Handles disconnection of a specific client. | |
| static void | TransformUpdate (Packet receivedPacket) |
| Receives and applies a position and rotation update for a user in the scene. | |
| static void | AnimationUpdate (Packet receivedPacket) |
| Receives and applies an animation update from the server for a specific user. | |
Handles incoming packets from the server and performs client-side actions accordingly.
Definition at line 10 of file ClientReceiveHandler.cs.
|
static |
Receives and applies an animation update from the server for a specific user.
Definition at line 169 of file ClientReceiveHandler.cs.
|
static |
Handles a bandwidth test response from the server.
Definition at line 97 of file ClientReceiveHandler.cs.
|
static |
Handles disconnection of a specific client.
Definition at line 145 of file ClientReceiveHandler.cs.
|
static |
Generates a HMAC-SHA256 hash for the provided data using the given key.
Definition at line 28 of file ClientReceiveHandler.cs.
|
static |
Handles a latency response packet from the server.
Definition at line 71 of file ClientReceiveHandler.cs.
|
static |
Handles receiving the HMAC key from the server and stores it on the client.
Definition at line 54 of file ClientReceiveHandler.cs.
|
static |
Receives a private text message from server.
Definition at line 121 of file ClientReceiveHandler.cs.
|
static |
Receives a broadcast message sent to all clients by the server.
Definition at line 137 of file ClientReceiveHandler.cs.
|
static |
Handles receiving an authentication token from the server and stores it on the client.
Definition at line 63 of file ClientReceiveHandler.cs.
|
static |
Spawns a user prefab on the client.
Definition at line 80 of file ClientReceiveHandler.cs.
|
static |
Handles a throughput test response from the server.
Definition at line 112 of file ClientReceiveHandler.cs.
|
static |
Receives and applies a position and rotation update for a user in the scene.
Definition at line 159 of file ClientReceiveHandler.cs.
|
static |
Validates the HMAC of a received packet using the client's stored key.
Validity check of HMAC.
Definition at line 15 of file ClientReceiveHandler.cs.
|
static |
Handles the welcome packet from the server, sets the client ID, and initiates UDP connection.
Definition at line 38 of file ClientReceiveHandler.cs.