English 中文(简体)
1. 获得信息 议题
原标题:getaddrinfo Issues

目前,我正在撰写我自己的吉大港定居人士协会代表。 我的守则是行之有效的,但我试图强调用阿帕奇语测试它,发现现在和现在我都收到以下信息:

“getaddrinfo: nodename nor servname provided, or not known forhost en.wikipedia.org service 80”

我无法说明,为什么这项职能在东道国名称和港口通过的地方应失败。

我在网上寻找了解决这一问题的不同方法,认为没有什么用处。

Does anyone have any ideas?

edit Solved this problem by implementing a DNS caching system within my application.

最佳回答

或许,在你决议中,有点不提你提出的问题的数量?

您必须首先使用<代码>/etc/nsswitch.conf,并了解如何在你的系统中解决询问。 在某些时候,你最终会去你的地方新闻中心,如果它一度有太多的问询,那也可能是时候。

您可能发现,你需要从你代理(例如,调查)或在当地使用,例如手提。

问题回答

d 我建议使用像C-ares这样的简便的DNS解决图书馆问题。 否则,你将迅速发现,标准解决将如何杀害你的表现,因为它将阻碍你们的工作。





相关问题
Undefined reference

I m getting this linker error. I know a way around it, but it s bugging me because another part of the project s linking fine and it s designed almost identically. First, I have namespace LCD. Then I ...

C++ Equivalent of Tidy

Is there an equivalent to tidy for HTML code for C++? I have searched on the internet, but I find nothing but C++ wrappers for tidy, etc... I think the keyword tidy is what has me hung up. I am ...

Template Classes in C++ ... a required skill set?

I m new to C++ and am wondering how much time I should invest in learning how to implement template classes. Are they widely used in industry, or is this something I should move through quickly?

Print possible strings created from a Number

Given a 10 digit Telephone Number, we have to print all possible strings created from that. The mapping of the numbers is the one as exactly on a phone s keypad. i.e. for 1,0-> No Letter for 2->...

typedef ing STL wstring

Why is it when i do the following i get errors when relating to with wchar_t? namespace Foo { typedef std::wstring String; } Now i declare all my strings as Foo::String through out the program, ...

C# Marshal / Pinvoke CBitmap?

I cannot figure out how to marshal a C++ CBitmap to a C# Bitmap or Image class. My import looks like this: [DllImport(@"test.dll", CharSet = CharSet.Unicode)] public static extern IntPtr ...

Window iconification status via Xlib

Is it possible to check with the means of pure X11/Xlib only whether the given window is iconified/minimized, and, if it is, how?

热门标签