Esempio n. 1
0
void set_ipsockopts(packet_buffer_t* sendinfo, config_t *conf){
	ip4conf_t* ipconf = conf->net_proto;
	int ret; 
	
	ret = setsockopt(*sendinfo->fd, IPPROTO_IP, IP_TOS, &ipconf->tos, sizeof(int));
	check_warning("WARNING IP tos option", ret);
	ret = setsockopt(*sendinfo->fd, IPPROTO_IP, IP_TTL, &ipconf->ttl,sizeof(int));
	check_warning("WARNING IP ttl option", ret);
}
Esempio n. 2
0
inline int Vgm_Emu::play_frame( blip_time_t blip_time, int sample_count, sample_t buf [] )
{
	check_end();
	int result = core.play_frame( blip_time, sample_count, buf );
	check_warning();
	return result;
}
Esempio n. 3
0
blargg_err_t Vgm_Emu::run_clocks( blip_time_t& time_io, int msec )
{
	check_end();
	time_io = core.run_psg( msec );
	check_warning();
	return (blargg_err_t)blargg_ok;
}