Log("New client from host %x\n",event.peer->address.host);
Log("New client from host %x\n",event.peer->address.host);
break;
break;
caseENET_EVENT_TYPE_RECEIVE:
caseENET_EVENT_TYPE_RECEIVE:
// @Robust @BeforeShip use some kind of serialization strategy that checks for out of bounds
// and other validation instead of just casting to a struct
// "Alignment of structure members can be different even among different compilers on the same platform, let alone different platforms."
// ^^ need serialization strategy that accounts for this if multiple platforms is happening https://stackoverflow.com/questions/28455163/how-can-i-portably-send-a-c-struct-through-a-network-socket