如何将文件推送到远程主机? [英] how to push a file to remote hosts?

查看:185
本文介绍了如何将文件推送到远程主机?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好。

我刚刚启动了一个程序,我可以在没有他们许可的情况下将文件推送到远程主机。因为这些远程主机没有显示屏。他们只是处理安装win7 32bit的一些信息的中心。我想主动将文件推送到那些远程PC。

多播(UDP)已经实现并且有效,但文件损坏了一点。 TCP套接字运行良好,但我只是发送到一台PC。

任何人都可以给我一个建议?非常感激。

hello to everyone.
i just started a program that i can push a file to remote hosts without their permission.Since those remote hosts have no display screen. They are just a centre to process some information installing win7 32bit. i want to push a file to those remote PCs actively.
Multicast(UDP) had been implemented and it worked ,but the file was damaged a little. TCP Socket works well ,but i have just send to one PC.
anyone could give me a advise? appreciate very much.

推荐答案

如果我理解正确,你想将相同的数据发送到多个远程主机。 UDP协议允许这样做,但它不关心数据完整性,因此一些数据块可能会丢失。 TCP确实提供了完整性检查,但它只允许发送到单个对等体。所以你想知道你的任务是否有替代解决方案。



可能有实用的通用多播协议可以帮助你(http://en.wikipedia.org/wiki/Pragmatic_General_Multicast [ ^ ])如果您的操作系统提供了它的实现,那么您只需要使用它。如果没有,那么可能你必须自己实现它,或者使用多个TCP连接。
If I understood you correctly, you want to send the same data to multiple remote hosts. The UDP protocol allows this, but it does not care about data integrity, so some chunks of data can get lost. TCP does provide integrity check, but it allows sending to single peer only. So you'd like to know if there's alternative solution for your task.

Potentially, there's Pragmatic General Multicast protocol that can help you (http://en.wikipedia.org/wiki/Pragmatic_General_Multicast[^]) If your operating system offers its implementation, then you just need to use it. If not, then probably you'll have to implement it yourself, or resort to using multiple TCP connections.


这篇关于如何将文件推送到远程主机?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆