|
Network Library Documentation
|
Contains all of the methods for packet sending according to their type. More...
Static Public Member Functions | |
| static Packet | AddHmac (Packet sendPacket, int ClientNum) |
| Adds HMAC to packet, returns packet with HMAC. | |
| static byte[] | GenerateHmac (Packet packet, byte[] key) |
| Generates HMAC of the data with the key from argument. | |
| static void | DisconnectedUser (int clientId) |
| Sends a packet to all clients to inform them that a user has disconnected. | |
| static void | LatencyToUser (int clientId, int pcktId) |
| Sends a latency response packet (ping reply) to a specific client. | |
| static void | WelcomePacket (int clientId, string message) |
| Sends a welcome message to a newly connected client. | |
| static void | SendHmacKeyPacket (int clientID, byte[] hmacKey) |
| Sends the HMAC key to a client for securing message integrity. | |
| static void | SendAuthPacket (int clientID, string token) |
| Sends an authentication token to the client. | |
| static void | SpawnUser (int clientId, ServerSideClientInstance user) |
| Sends a packet to spawn a new user instance on the client side. | |
| static void | SendBandwidthReply (int clientId) |
| Sends a bandwidth reply packet to the client after measurement. | |
| static void | SendThroughputReply (int clientId, int pcktId, int dataSize) |
| Sends a throughput measurement result to the client. | |
| static void | SendMessage (int clientId, string message) |
| Sends a private text message to a specific client. | |
| static void | SendMessageAll (int clientId, string message) |
| Sends a message to all clients except the sender. | |
| static void | SendToAll (Packet sendPacket) |
| Sends a packet to all connected clients. | |
| static void | SendToClient (Packet sendPacket, int clientId) |
| Sends a packet to a specific client. | |
| static void | SendUpdatedTransform (int clientId, Vector3 pos, Quaternion rot) |
| Sends updated transform (position and rotation) to all clients. | |
| static void | SendUpdatedAnimation (int clientId, int type, string name, float value) |
| Sends updated animation data to all clients. | |
| static void | SendToAllExc (Packet sendPacket, int exceptClient) |
| Sends a packet to all clients except one specified by ID. | |
| static void | UDPSendToAll (Packet sendPacket) |
| Sends a packet to all clients using UDP. | |
Static Private Member Functions | |
| static void | UDPSendToClient (Packet sendPacket, int clientId) |
| Sends a packet to a specific client using UDP. | |
Contains all of the methods for packet sending according to their type.
Definition at line 9 of file ServerSendHandler.cs.
Adds HMAC to packet, returns packet with HMAC.
Value of clients HMAC key.
Definition at line 14 of file ServerSendHandler.cs.
|
static |
Sends a packet to all clients to inform them that a user has disconnected.
Definition at line 42 of file ServerSendHandler.cs.
|
static |
Generates HMAC of the data with the key from argument.
Uses HMACSHA256 for computing HMAC value.
Definition at line 27 of file ServerSendHandler.cs.
|
static |
Sends a latency response packet (ping reply) to a specific client.
Definition at line 55 of file ServerSendHandler.cs.
|
static |
Sends an authentication token to the client.
Definition at line 85 of file ServerSendHandler.cs.
|
static |
Sends a bandwidth reply packet to the client after measurement.
Definition at line 109 of file ServerSendHandler.cs.
|
static |
Sends the HMAC key to a client for securing message integrity.
Definition at line 75 of file ServerSendHandler.cs.
|
static |
Sends a private text message to a specific client.
Definition at line 132 of file ServerSendHandler.cs.
|
static |
Sends a message to all clients except the sender.
Definition at line 147 of file ServerSendHandler.cs.
|
static |
Sends a throughput measurement result to the client.
Definition at line 122 of file ServerSendHandler.cs.
|
static |
Sends a packet to all connected clients.
Definition at line 158 of file ServerSendHandler.cs.
|
static |
Sends a packet to all clients except one specified by ID.
Definition at line 207 of file ServerSendHandler.cs.
|
static |
Sends a packet to a specific client.
Definition at line 170 of file ServerSendHandler.cs.
|
static |
Sends updated animation data to all clients.
Definition at line 195 of file ServerSendHandler.cs.
|
static |
Sends updated transform (position and rotation) to all clients.
Definition at line 178 of file ServerSendHandler.cs.
|
static |
Sends a packet to spawn a new user instance on the client side.
Definition at line 95 of file ServerSendHandler.cs.
|
static |
Sends a packet to all clients using UDP.
Definition at line 229 of file ServerSendHandler.cs.
|
staticprivate |
Sends a packet to a specific client using UDP.
Definition at line 221 of file ServerSendHandler.cs.
|
static |
Sends a welcome message to a newly connected client.
Definition at line 65 of file ServerSendHandler.cs.