|
Network Library Documentation
|
Class for managing UDP connection. More...
Public Member Functions | |
| UDP (int id) | |
| Initializes a new UDP object with the given client ID. | |
| void | ConnectUDP (IPEndPoint endPoint) |
| Sets the remote endpoint for the UDP client. | |
| void | SendUDPData (Packet SendPacket) |
| Sends a UDP packet to the client using the configured endpoint. | |
| void | UdpDataHandler (Packet data) |
| Handles incoming UDP data and calls PacketAction() on the main thread. | |
| void | Disconnect () |
| Disconnects the UDP client by clearing its endpoint. | |
Public Attributes | |
| IPEndPoint | EndPoint |
Private Attributes | |
| int | clientId |
Class for managing UDP connection.
Definition at line 382 of file ServerSideClient.cs.
| ServerSideClient.UDP.UDP | ( | int | id | ) |
Initializes a new UDP object with the given client ID.
Definition at line 389 of file ServerSideClient.cs.
| void ServerSideClient.UDP.ConnectUDP | ( | IPEndPoint | endPoint | ) |
Sets the remote endpoint for the UDP client.
Definition at line 396 of file ServerSideClient.cs.
| void ServerSideClient.UDP.Disconnect | ( | ) |
Disconnects the UDP client by clearing its endpoint.
Definition at line 423 of file ServerSideClient.cs.
| void ServerSideClient.UDP.SendUDPData | ( | Packet | SendPacket | ) |
Sends a UDP packet to the client using the configured endpoint.
Definition at line 403 of file ServerSideClient.cs.
| void ServerSideClient.UDP.UdpDataHandler | ( | Packet | data | ) |
Handles incoming UDP data and calls PacketAction() on the main thread.
Definition at line 410 of file ServerSideClient.cs.
|
private |
Definition at line 385 of file ServerSideClient.cs.
| IPEndPoint ServerSideClient.UDP.EndPoint |
Definition at line 384 of file ServerSideClient.cs.