3 -- How to run Qemu with MF624
===============================
* Add "-device mf624" to Qemu command line parameters.
- E. g. "i386-softmmu$ ./qemu -device mf624-hda ..//debian.qcow --boot c"
+ E. g. "i386-softmmu$ ./qemu -device mf624 -hda ..//debian.qcow --boot c"
sockfd = ::socket(AF_INET, SOCK_STREAM, 0);
if (sockfd < 0) {
perror("socket()");
- exit(0);
+ ::exit(0);
}
//server = gethostbyname(argv[1]);
server = ::gethostbyname("127.0.0.1");
if (server == NULL) {
perror("gethostbyname()");
- exit(0);
+ ::exit(0);
}
memset((char *) &serv_addr, '\0', sizeof(serv_addr));
((MainWindow*) parent())->ui->dac6->setValue(mf624_io_status.DA6);
((MainWindow*) parent())->ui->dac7->setValue(mf624_io_status.DA7);
- //printf("%s\n", buffer);
+ //printf("%s\n", read_buffer);
}
- //close(sockfd);
+ close(sockfd);
exec();
}