Click here to Skip to main content
15,886,689 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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.
Posted

1 solution

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.
 
Share this answer
 
v2
Comments
shangtao1989 13-Mar-15 5:39am    
ok,thank you very much. i will search some information about what you said ,and if i am able to implement that ,i will put it on this website...thank you .^-^

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900