From: divverent Date: Sun, 7 Nov 2010 18:37:40 +0000 (+0000) Subject: DPrint the LHNET_Read and LHNET_Write errors (as they may just indicate lack of IPv6... X-Git-Tag: xonotic-v0.1.0preview~78 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=92394ec14933bdafbf5a1ddda101978646fe96e7;p=xonotic%2Fdarkplaces.git DPrint the LHNET_Read and LHNET_Write errors (as they may just indicate lack of IPv6 connectivity and don't mean DP won't work) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10583 d7cf8633-e32d-0410-b094-e92efae38249 ::stable-branch::merge=a50c2fe2f0c39462a60b9a9f8ccbe43942b75a28 --- diff --git a/lhnet.c b/lhnet.c index 42ca242c..a6cf1a4c 100644 --- a/lhnet.c +++ b/lhnet.c @@ -1100,7 +1100,7 @@ int LHNET_Read(lhnetsocket_t *lhnetsocket, void *content, int maxcontentlength, Con_Print("Connection refused\n"); return 0; } - Con_Printf("LHNET_Read: recvfrom returned error: %s\n", LHNETPRIVATE_StrError()); + Con_DPrintf("LHNET_Read: recvfrom returned error: %s\n", LHNETPRIVATE_StrError()); } } #ifdef SUPPORTIPV6 @@ -1127,7 +1127,7 @@ int LHNET_Read(lhnetsocket_t *lhnetsocket, void *content, int maxcontentlength, Con_Print("Connection refused\n"); return 0; } - Con_Printf("LHNET_Read: recvfrom returned error: %s\n", LHNETPRIVATE_StrError()); + Con_DPrintf("LHNET_Read: recvfrom returned error: %s\n", LHNETPRIVATE_StrError()); } } #endif @@ -1168,7 +1168,7 @@ int LHNET_Write(lhnetsocket_t *lhnetsocket, const void *content, int contentleng { if (SOCKETERRNO == EWOULDBLOCK) return 0; - Con_Printf("LHNET_Write: sendto returned error: %s\n", LHNETPRIVATE_StrError()); + Con_DPrintf("LHNET_Write: sendto returned error: %s\n", LHNETPRIVATE_StrError()); } } #ifdef SUPPORTIPV6 @@ -1179,7 +1179,7 @@ int LHNET_Write(lhnetsocket_t *lhnetsocket, const void *content, int contentleng { if (SOCKETERRNO == EWOULDBLOCK) return 0; - Con_Printf("LHNET_Write: sendto returned error: %s\n", LHNETPRIVATE_StrError()); + Con_DPrintf("LHNET_Write: sendto returned error: %s\n", LHNETPRIVATE_StrError()); } } #endif