首页 \ 问答 \ 更多投票()?的(More Poll() ?'s)

更多投票()?的(More Poll() ?'s)

再次回来!

我一直在用windows上的select()做一些异步套接字编程,并且它工作得很好。 然而它只能扩展到1024个clients.Poll()是解决这个限制的方法,我知道它可以在linux和unix上运行。 但它不适用于Windows系统是否正确?

我读过WsaPoll(),它是否具有完全相同的功能? 我必须链接哪些库才能使用它?

我可以使用FD_SETSIZE在Windows中安全地增加套接字号吗? 我的最终程序将在Linux服务器上。 不过,我现在正在Windows系统上进行测试。 我应该将我的测试机器交换到Linux机器吗? (可能会反正)

否则,你会推荐使用Windows?

(抱歉所有的问题,我正在自己研究,我保证= D)


Back again!

I've been doing some async socket programming with select() on windows,and it's been working quite well. However it's only scalable up to 1024 clients.Poll() is the way to get around that limitation, and I know it works on both linux and unix. But it doesn't work with a windows system correct?

I read about WsaPoll(), does it have the exact same functionality? What libraries would I have to link to in order to use it?

Can I increase the socket number safely in windows with FD_SETSIZE? My end program will be on a linux server. However I am testing on a windows system right now. Should I just swap my test machine over to a linux box? (probably going to anyway)

Otherwise what would you recommend to use with windows?

(sorry for all of the questions, I am doing research on my own, I promise =D)


原文:https://stackoverflow.com/questions/5358907
更新时间:2023-10-09 19:10

最满意答案

您必须获取密钥并将其添加到您的所有请求中。

OMDb API: http ://www.omdbapi.com/?i = ttt3896198&apikey = key海报API: http ://img.omdbapi.com/?i = ttt3896198&h = 600&apikey = key

这就是他们在网站上的内容。

We are going private!

05/10/17 - New API Keys! Due to some security concerns on how the keys were being distributed I updated the form to email them and also changed the algorithm used, which means your older keys not obtained through email will eventually stop working. 

05/08/17 - Going Private! Please go read the post on the Patreon page about this major change. 

您必须获得API密钥。


You have to get a key and add it to all your requests now.

OMDb API: http://www.omdbapi.com/?i=tt3896198&apikey=key Poster API: http://img.omdbapi.com/?i=tt3896198&h=600&apikey=key

This is what they had on their site.

We are going private!

05/10/17 - New API Keys! Due to some security concerns on how the keys were being distributed I updated the form to email them and also changed the algorithm used, which means your older keys not obtained through email will eventually stop working. 

05/08/17 - Going Private! Please go read the post on the Patreon page about this major change. 

You have to get an API Key.

相关问答

更多
  • 您必须获取密钥并将其添加到您的所有请求中。 OMDb API: http ://www.omdbapi.com/?i = ttt3896198&apikey = key海报API: http ://img.omdbapi.com/?i = ttt3896198&h = 600&apikey = key 这就是他们在网站上的内容。 We are going private! 05/10/17 - New API Keys! Due to some security concerns on how the k ...
  • 令牌可能已过期。 您可以重新生成运行token_script.sh脚本的新令牌,如以下文档中所述 。 编辑:系统的正常行为是不时取消令牌,因此最好的方法是以给定的周期(例如24小时)重新生成它。 但请注意,尽管您可以手动重新生成令牌并重新配置应用程序以使用上述新应用程序,但最好将应用程序编程为自动执行。 有关详细信息,请查看FI-WARE教育平台中的OAuth课程和OAuth 2.0 RFC中的“刷新令牌”部分 。 Probably the token has expired. You can re-gen ...
  • 丹尼尔·欧文 : 401未经授权存在问题,用于身份验证错误的HTTP状态代码。 这就是它:它是用于身份验证,而不是授权。 服务器告诉你,“您没有通过身份验证,或者没有经过身份验证,或者不正确地进行身份验证,但是请重新认证,然后重试”。为了帮助您,它将始终包含一个WWW-Authenticate头文件如何认证 这是您的Web服务器通常返回的响应,而不是您的Web应用程序。 这也是很临时的事情 服务器要求您再试一次。 所以,对于授权,我使用403 Forbidden响应。 它是永久的,它与我的应用程序逻辑有关, ...
  • 您假设www-authenticate值需要是基本的。 您可以返回不同的值,例如“API-key”作为需要发生的auth类型。 所以随意返回401和www-authenticate标头以及其他一些值。 您甚至可以返回具有不同值的多个标头,指示您的应用支持的不同类型的身份验证。 You are assuming that the www-authenticate value needs to be basic. You can return a different value like "API-key" a ...
  • 你期望的是Metascore字段,但它不存在 - 要么删除它,要么标记为可写。 来自IMDB的响应很好 - 没有错误,这是你的代码中的错误 You are expecting the Metascore field, but it isn't there - either remove it or mark as ingorable. The response from IMDB is fine - no error there, the is error in your code
  • 好的,发现问题 - Visual Studio解决方案为Web应用程序属性Web - > Servers - > IIS Express提供了一个类似于http://localhost:51243的值,该值适用于调试,但是当我发布它时会保留这些设置所以它不能在生产服务器上运行。 为了解决这个问题,我将它切换到带有生产URL的External Host 。 我仍然觉得有趣的是,Windows 10 v1607不关心这个,而v1703给出了401错误。 OK, found the problem--the Vi ...
  • 启用身份验证委派 使用Active Directory用户和计算机Microsoft管理控制台(“开始”>“运行”>“dsa.msc”),打开ServerA服务器条目的属性。 在“委派”下,选择“ 信任此计算机以委派任何服务(仅限Kerberos)” 。 配置SPN 使用以下命令注册服务主体名称(SPN): setspn -S http/ServerB ReportingServicesServiceAccount setspn -S http/ServerB.domain.com ReportingSer ...
  • 我通过在web.xml注册多个API资源包以及多个ContainerRequestFilter实现类来解决它。 请注意:对于资源:使用包含类的包。 对于提供者:使用类名。 保持包分号/逗号分隔。 例: 对于资源包: jersey.config.server.provider.packages my.first.package; my.second.packa ...
  • 现在它的工作。 我用标题修改了我的代码。 DefaultHttpClient httpclient = new DefaultHttpClient(); httpclient.getAuthSchemes().register("ntlm", new NTLMSchemeFactory()); httpclient.getCredentialsProvider().setCredentials(new AuthScope(AuthScope.ANY_HOST, AuthScope.ANY_ ...
  • 您需要对用户进行身份验证以使用特殊关键字“me”,因此使用简单的API密钥将无效(假设传递的密钥是您的简单密钥)。 相反,您需要获取访问令牌并传递它。 有关如何使用PHP客户端库在PHP中执行此操作的一个很好的示例,请尝试快速入门: https://developers.google.com/+/quickstart/php 如果您已获得访问令牌,则可以调用tokeninfo传递访问令牌以获取有关用户与之关联的更多信息: https://www.googleapis.com/oauth2/v1/tokeni ...

相关文章

更多

最新问答

更多
  • 获取MVC 4使用的DisplayMode后缀(Get the DisplayMode Suffix being used by MVC 4)
  • 如何通过引用返回对象?(How is returning an object by reference possible?)
  • 矩阵如何存储在内存中?(How are matrices stored in memory?)
  • 每个请求的Java新会话?(Java New Session For Each Request?)
  • css:浮动div中重叠的标题h1(css: overlapping headlines h1 in floated divs)
  • 无论图像如何,Caffe预测同一类(Caffe predicts same class regardless of image)
  • xcode语法颜色编码解释?(xcode syntax color coding explained?)
  • 在Access 2010 Runtime中使用Office 2000校对工具(Use Office 2000 proofing tools in Access 2010 Runtime)
  • 从单独的Web主机将图像传输到服务器上(Getting images onto server from separate web host)
  • 从旧版本复制文件并保留它们(旧/新版本)(Copy a file from old revision and keep both of them (old / new revision))
  • 西安哪有PLC可控制编程的培训
  • 在Entity Framework中选择基类(Select base class in Entity Framework)
  • 在Android中出现错误“数据集和渲染器应该不为null,并且应该具有相同数量的系列”(Error “Dataset and renderer should be not null and should have the same number of series” in Android)
  • 电脑二级VF有什么用
  • Datamapper Ruby如何添加Hook方法(Datamapper Ruby How to add Hook Method)
  • 金华英语角.
  • 手机软件如何制作
  • 用于Android webview中图像保存的上下文菜单(Context Menu for Image Saving in an Android webview)
  • 注意:未定义的偏移量:PHP(Notice: Undefined offset: PHP)
  • 如何读R中的大数据集[复制](How to read large dataset in R [duplicate])
  • Unity 5 Heighmap与地形宽度/地形长度的分辨率关系?(Unity 5 Heighmap Resolution relationship to terrain width / terrain length?)
  • 如何通知PipedOutputStream线程写入最后一个字节的PipedInputStream线程?(How to notify PipedInputStream thread that PipedOutputStream thread has written last byte?)
  • python的访问器方法有哪些
  • DeviceNetworkInformation:哪个是哪个?(DeviceNetworkInformation: Which is which?)
  • 在Ruby中对组合进行排序(Sorting a combination in Ruby)
  • 网站开发的流程?
  • 使用Zend Framework 2中的JOIN sql检索数据(Retrieve data using JOIN sql in Zend Framework 2)
  • 条带格式类型格式模式编号无法正常工作(Stripes format type format pattern number not working properly)
  • 透明度错误IE11(Transparency bug IE11)
  • linux的基本操作命令。。。