some uncommitted old mapper code

apparently from 2011
This commit is contained in:
notaz 2013-06-23 02:00:43 +03:00
parent cff531af94
commit 30f0fdd422
6 changed files with 209 additions and 15 deletions

View file

@ -88,6 +88,8 @@ static int pdb_net_send(struct pdb_cpu *cpu, unsigned int pc)
packet.header.len = 4 + rl + 4*2;
sh2->pdb_io_csum[0] = sh2->pdb_io_csum[1] = 0;
}
else
memset(&packet, 0, sizeof(packet));
ret = send(pdb_net_sock, &packet, sizeof(packet.header) + packet.header.len, MSG_NOSIGNAL);
if (ret != sizeof(packet.header) + packet.header.len) {