Functions that enable communication via network UDP socket.
More...
|
void | setNonBlocking (int socket) |
| Sets a socket to non-blocking mode.
|
|
void | updateCursor (int udpSocket) |
| Updates the cursor position based on data received over UDP.
|
|
void | updateTargets (int udpSocket) |
| Updates the target positions based on data received over UDP.
|
|
Functions that enable communication via network UDP socket.
◆ setNonBlocking()
void setNonBlocking |
( |
int | socket | ) |
|
Sets a socket to non-blocking mode.
- Parameters
-
socket | The socket descriptor. |
◆ updateCursor()
void updateCursor |
( |
int | udpSocket | ) |
|
Updates the cursor position based on data received over UDP.
- Parameters
-
udpSocket | The UDP socket for receiving cursor data. |
◆ updateTargets()
void updateTargets |
( |
int | udpSocket | ) |
|
Updates the target positions based on data received over UDP.
- Parameters
-
udpSocket | The UDP socket for receiving target data. |