InterviewSolution
| 1. |
Why Do We Get The Value Of 0.0.0.0 In Dnsresult.addrs When I Use Gethostbyname()? |
|
Answer» This may be due to INCORRECT implementation of error HANDLING in the GetHostByName() callback function. The error handling implementation in the GetHostByName() callback of the NetSocket EXAMPLE is incorrect. You can use the following sample implementation: if(pMe->dnsresult.nResult > 0 && pMe->dnsresult.nResult This may be due to incorrect implementation of error handling in the GetHostByName() callback function. The error handling implementation in the GetHostByName() callback of the NetSocket example is incorrect. You can use the following sample implementation: if(pMe->dnsresult.nResult > 0 && pMe->dnsresult.nResult |
|