det_dgrm.c (_Datagram_Connect): Added error feedback when we could not

resolve the given host name.
(Test_f): Likewise.
(Test2_f): Likewise.


git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@104 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
sezero 2010-03-06 14:20:46 +00:00
parent 605c7a360a
commit 013af8f6ce
1 changed files with 9 additions and 0 deletions

View File

@ -633,7 +633,10 @@ static void Net_Test_f (void)
break;
}
if (net_landriverlevel == net_numlandrivers)
{
Con_Printf("Could not resolve %s\n", host);
return;
}
JustDoIt:
testSocket = dfunc.OpenSocket(0);
@ -761,7 +764,10 @@ static void Test2_f (void)
break;
}
if (net_landriverlevel == net_numlandrivers)
{
Con_Printf("Could not resolve %s\n", host);
return;
}
JustDoIt:
test2Socket = dfunc.OpenSocket(0);
@ -1239,7 +1245,10 @@ static qsocket_t *_Datagram_Connect (char *host)
// see if we can resolve the host name
if (dfunc.GetAddrFromName(host, &sendaddr) == -1)
{
Con_Printf("Could not resolve %s\n", host);
return NULL;
}
newsock = dfunc.OpenSocket (0);
if (newsock == -1)