Esempio n. 1
0
void update_sector_objects(Uint16 sector)
{
	char msg[3];
	clear_sector(sector);
	msg[0]=UPDATE_SECTOR_OBJECTS;
	*(Uint16 *)&msg[1]=sector;
	my_tcp_send(my_socket,msg,3);
}
Esempio n. 2
0
 empty_sectors_t() {
   for (std::size_t c = 0; c < sectors; ++c)
     clear_sector(this->data + c * sector_size);
 }