插座TCP/IP八度

发布于 2025-01-29 14:56:25 字数 221 浏览 2 评论 0原文

我在C中创建了一个套接字TCP/IP服务器:

在客户端,我使用脚本八度来实现套接字TCP/IP客户端,

即使脚本已终止,但服务器仍然打开,我想知道可以使连接保持生存的元素是什么?

我看到八度窗口仍然打开,其中还包含变量,我认为这就是使连接仍然活着的原因。但是我需要关于这个问题的一些解释。

我与Python的客户端一起做了同样的事情,但是服务器已关闭,即使我没有关闭插座。

I have created a socket TCP/IP server in C:

On the client-side, I used a script Octave to implement socket TCP/IP client

Even though the script has been terminated, but the server is still open, I would like to know what is the element which can keep the connection alive?

I saw that the Octave window is still open which contains the variables also, and I think that is the reason makes the connection is still alive. But I need some explanations about this problem.

I did the same things with a client in Python but the server is closed even I did not close the socket.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文