Esempio n. 1
0
// Processes the shared memory
void processSharedMemoryData(struct ns_connection *nc, const SharedMemory* sharedData, struct http_message *hm)   {
	// Ensure we're sync'd to the correct data version
	if (sharedData->mVersion != SHARED_MEMORY_VERSION)	{
		// build conflict response
		sendConflict(nc);
		printf("Data version mismatch, please make sure that your pCARS version matches your CREST version\n");
	}else{
		renderResponse(nc, sharedData, hm);
	}

}
Esempio n. 2
0
/* Turns the vector under construction into a conflict */
void RaiseConflict::commitConflict(){
  Assert(!d_construction.empty());
  sendConflict(d_construction);
  d_construction.clear();
}