VgaGames4

VgaGames4 - network man-pages

[.. upper level ..]

# vg4->nw->connected_clients()

Update which clients are connected (outside the game-loop).

SYNTAX
void vg4->nw->connected_clients(void)
DESCRIPTION
Update which clients are connected (outside the game-loop). This function MUST NOT called within the game-loop where vg4->nw->update() is called, as this information is received also by vg4->nw->update(). This function can be useful to update the information of remaining connected clients to start a new game with them. To evaluate the updated information, vg4->nw->is_connected() or vg4->nw->numberofclients() can be used. Other functions to receive an update which clients are connected are - within the game-loop: vg4->nw->update() - outside the game-loop: vg4->nw->xdata_recv()
SEE ALSO
vg4->nw->is_connected() vg4->nw->numberofclients()