VgaGames 3 - Network man-pages

[.. upper level ..]

VG3_nw_update()

Update network data.
SYNTAX
int VG3_nw_update(struct vg3_nwclient *nwclnt, int *dowait)

FUNCTION PARAMETERS
nwclnt Network-struct
dowait For returning, whether the client is up-to-date.
If dowait returns 0, the client is behind of time
and should not call VG3_wait_time() this game-loop

RETURN VALUE
Returns integer: - 0: OK - 1: Got request for closing the window and exiting the game

DESCRIPTION
This function should be called once a game-loop to update network data. It sends own key-strokes and receives key-strokes of all clients including own client. The parameter dowait informs the client if it is on delay, then it should skip waiting within the game-loop using VG3_wait_time(). This function calls VG3_inputevent_update(), so it replaces that function.

SEE ALSO
VG3_nw_key_ispressed()