problems using sockets inside qemu code
Hi again,
I'm using sockets inside qemu code for my work on SystemC + qemu simulation. I've implemented a TCP client inside qemu code to connect to an application (TCP server) outside QEMU (all SystemC stuff). Almost all is working fine, but sometimes receiving data fails with an "Interrupted system call" on perror (errno = EINTR).
When testing socket code with no QEMU works fine...
Any idea? I don't knot what to do
Thanks
Signature · 11 lines
Màrius Montón i Macián [email protected] <mailto:[email protected]> http://cephis.uab.es <http://www.mariusmonton.name> Hardware Engineer CEPHIS Centre de Prototips i Solucions Hardware-Software Dep. Microelectrònica i Sistemes Electrònics ETSE - Universitat Autònoma de Barcelona (UAB) Phone: +34 935 813 534 Fax: +34 935 813 033 QC-2090D. ETSE. Campus UAB. 080193 Bellaterra
begin:vcard
fn;quoted-printable:M=C3=A0rius Mont=C3=B3n n;quoted-printable;quoted-printable:Mont=C3=B3n;M=C3=A0rius org:CEPHIS-UAB
adr:Campus de la Autonoma;;QC-2090D. ETSE;Bellaterra;Barcelona;08193;Spain email;internet:[email protected]
title:System Engineer
tel;work:+34935813534
url:http://cephis.uab.cat
version:2.1
end:vcard
Quoted 8 lines · Marius Monton
Hi again,
I'm using sockets inside qemu code for my work on SystemC + qemu simulation. I've implemented a TCP client inside qemu code to connect to an application (TCP server) outside QEMU (all SystemC stuff). Almost all is working fine, but sometimes receiving data fails with an "Interrupted system call" on perror (errno = EINTR).
When testing socket code with no QEMU works fine...
I suggest you read the recv(1) manpage. Retry the command.
Paul