如何通过套接字发送大文件

编程入门 行业动态 更新时间:2024-10-26 20:26:06
本文介绍了如何通过套接字发送大文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

如何通过套接字发送大文件

how to send a big file by sockets

推荐答案

考虑到问题中完全没有任何信息,this [ ^ ]是关于你将得到的最佳答案。 Considering to total lack of any information in your "question" at all, this[^] is about the best answer you're going to get.

使用FTP而不是突破门。 但是,使用带有TCP协议的纯套接字也不是问题。您必须设计一个简单的应用层协议而不是FTP,它实际上可以比FTP简单。由于TCP是面向会话的,您可以轻松地将大文件分成更小的块并逐个传输。我不想给你更多详细信息,因为你从未提及 你曾经尝试过什么 到目前为止没有解释你的问题。如果您提出更具体的问题,您可能有机会获得更多帮助。
-SA
Use FTP instead of breaking through the open door. However, using pure sockets with TCP protocol is not a problem, too. You have to design a simple application-layer protocol instead of FTP, which can actually be simpler than FTP. As TCP is session-oriented, you can easily break the big file into smaller chunks and transmit them one by one. I don't want to give you more detail, just because you never mentioned what have you tried so far and did not explain what you problem is. If you ask more specific question, you may get a chance to get some more help.
—SA

更多推荐

如何通过套接字发送大文件

本文发布于:2023-11-25 17:36:22,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1630700.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:大文件

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!