File diff r25288:32bdda38037d → r25289:7c44ede418ad
src/network/core/core.cpp
Show inline comments
 
@@ -65,31 +65,3 @@ const char *NetworkGetErrorString(int er
 
	return buffer;
 
}
 
#endif /* defined(_WIN32) */
 

	
 
/**
 
 * Serializes the GRFIdentifier (GRF ID and MD5 checksum) to the packet
 
 * @param p   the packet to write the data to
 
 * @param grf the GRFIdentifier to serialize
 
 */
 
void NetworkSocketHandler::SendGRFIdentifier(Packet *p, const GRFIdentifier *grf)
 
{
 
	uint j;
 
	p->Send_uint32(grf->grfid);
 
	for (j = 0; j < sizeof(grf->md5sum); j++) {
 
		p->Send_uint8 (grf->md5sum[j]);
 
	}
 
}
 

	
 
/**
 
 * Deserializes the GRFIdentifier (GRF ID and MD5 checksum) from the packet
 
 * @param p   the packet to read the data from
 
 * @param grf the GRFIdentifier to deserialize
 
 */
 
void NetworkSocketHandler::ReceiveGRFIdentifier(Packet *p, GRFIdentifier *grf)
 
{
 
	uint j;
 
	grf->grfid = p->Recv_uint32();
 
	for (j = 0; j < sizeof(grf->md5sum); j++) {
 
		grf->md5sum[j] = p->Recv_uint8();
 
	}
 
}