English 中文(简体)
未发现的当地东道连接
原标题:Localhost connection closed not detected with select
  • 时间:2011-10-27 16:45:38
  •  标签:
  • c
  • winapi

我在Chonapi设计了一个小型网络服务器。

我选择探测从当地东道主(Firefox)关闭的一条连接。

我向我的当地服务器发出一项请求,我的软件等到我与Grea(上但顿)的连接结束为止。

如果在大约10秒后我结束联系,我的软件能够发现关闭的连接。

但是,如果我在一分钟后关闭了连接,我的软件就没有发现任何东西......

仅此,当我结束发言时,该连接被最后发现,或......最后被火ox清除!

最佳回答

能否发现一件货单的关闭,很大程度上取决于车单是如何关闭的,以及连接的其他特征。 我发现,在合理时间内发现封闭式连接的一种办法是试图写上这一联系(如在两个方向建立定期投票)。 这会造成直接错误。

我不敢肯定,这如何帮助你的特殊情况。

问题回答

暂无回答




相关问题
Fastest method for running a binary search on a file in C?

For example, let s say I want to find a particular word or number in a file. The contents are in sorted order (obviously). Since I want to run a binary search on the file, it seems like a real waste ...

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->...

Tips for debugging a made-for-linux application on windows?

I m trying to find the source of a bug I have found in an open-source application. I have managed to get a build up and running on my Windows machine, but I m having trouble finding the spot in the ...

Trying to split by two delimiters and it doesn t work - C

I wrote below code to readin line by line from stdin ex. city=Boston;city=New York;city=Chicago and then split each line by ; delimiter and print each record. Then in yet another loop I try to ...

Good, free, easy-to-use C graphics libraries? [closed]

I was wondering if there were any good free graphics libraries for C that are easy to use? It s for plotting 2d and 3d graphs and then saving to a file. It s on a Linux system and there s no gnuplot ...

Encoding, decoding an integer to a char array

Please note that this is not homework and i did search before starting this new thread. I got Store an int in a char array? I was looking for an answer but didn t get any satisfactory answer in the ...

热门标签