/* Test-driver for the remote-virtual-component simulator framework
for GDB, the GNU Debugger.
/* Test-driver for the remote-virtual-component simulator framework
for GDB, the GNU Debugger.
memset (&sa_in, 0, sizeof (sa_in));
s = socket (AF_INET, SOCK_STREAM, 0);
memset (&sa_in, 0, sizeof (sa_in));
s = socket (AF_INET, SOCK_STREAM, 0);
return -1;
if (setsockopt (s, SOL_SOCKET, SO_REUSEADDR, &reuse, sizeof reuse) != 0)
return -1;
if (setsockopt (s, SOL_SOCKET, SO_REUSEADDR, &reuse, sizeof reuse) != 0)
{
fprintf (stderr, "%s: problem setting up the connection: %s\n",
progname, strerror (errno));
{
fprintf (stderr, "%s: problem setting up the connection: %s\n",
progname, strerror (errno));