Nilorea Library
C utilities for networking, threading, graphics
PEER_OBJECT Struct Reference

a simple structure to hold objects positions / timeouts More...

+ Collaboration diagram for PEER_OBJECT:

Data Fields

int id
 remote object id More...
 
long int life_time
 current life time, updated when receiving a position from a peer. More...
 
double position [3]
 last received object position More...
 

Detailed Description

a simple structure to hold objects positions / timeouts

Examples
ex_gui_netclient.c.

Definition at line 22 of file ex_gui_netclient.c.

Field Documentation

◆ id

int PEER_OBJECT::id

remote object id

Examples
ex_gui_netclient.c.

Definition at line 27 of file ex_gui_netclient.c.

◆ life_time

long int PEER_OBJECT::life_time

current life time, updated when receiving a position from a peer.

Object is removed if it reach 0

Examples
ex_gui_netclient.c.

Definition at line 29 of file ex_gui_netclient.c.

◆ position

double PEER_OBJECT::position[3]

last received object position

Examples
ex_gui_netclient.c.

Definition at line 25 of file ex_gui_netclient.c.


The documentation for this struct was generated from the following file: